Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMatthieu Aubry <matt@piwik.org>2015-10-09 05:31:51 +0300
committerMatthieu Aubry <matt@piwik.org>2015-10-09 05:31:51 +0300
commit4b7adb9206368a9f3022f37a77247fd262d00314 (patch)
tree17e3c3daaecaf8d1098178e332b2fd3fc4b4bff8 /core
parent38e33d6a6c6012304384956301c42542850c697a (diff)
parentb559f8b9aa950a621a109d48fe2e2bf4649e743b (diff)
Merge pull request #8938 from piwik/4589
added AnonymousPiwikUsageMeasurement plugin
Diffstat (limited to 'core')
-rw-r--r--core/AssetManager/UIAssetFetcher/JScriptUIAssetFetcher.php2
-rw-r--r--core/Plugin/Controller.php3
-rw-r--r--core/Updates/2.15.0-b17.php44
3 files changed, 46 insertions, 3 deletions
diff --git a/core/AssetManager/UIAssetFetcher/JScriptUIAssetFetcher.php b/core/AssetManager/UIAssetFetcher/JScriptUIAssetFetcher.php
index d8ec05ca53..aed319253f 100644
--- a/core/AssetManager/UIAssetFetcher/JScriptUIAssetFetcher.php
+++ b/core/AssetManager/UIAssetFetcher/JScriptUIAssetFetcher.php
@@ -72,6 +72,8 @@ class JScriptUIAssetFetcher extends UIAssetFetcher
'libs/bower_components/jquery-ui/ui/minified/jquery-ui.min.js',
'libs/jquery/jquery.browser.js',
'libs/',
+ 'js/',
+ 'piwik.js',
'plugins/CoreHome/javascripts/require.js',
'plugins/Morpheus/javascripts/piwikHelper.js',
'plugins/Morpheus/javascripts/jquery.icheck.min.js',
diff --git a/core/Plugin/Controller.php b/core/Plugin/Controller.php
index df56b4a8da..be874c6224 100644
--- a/core/Plugin/Controller.php
+++ b/core/Plugin/Controller.php
@@ -665,8 +665,6 @@ abstract class Controller
*
* The following variables assigned:
*
- * **enableMeasurePiwikForSiteId** - The value of the `[Debug] enable_measure_piwik_usage_in_idsite`
- * INI config option.
* **isSuperUser** - True if the current user is the Super User, false if otherwise.
* **hasSomeAdminAccess** - True if the current user has admin access to at least one site,
* false if otherwise.
@@ -686,7 +684,6 @@ abstract class Controller
protected function setBasicVariablesView($view)
{
$view->clientSideConfig = PiwikConfig::getInstance()->getClientSideOptions();
- $view->enableMeasurePiwikForSiteId = PiwikConfig::getInstance()->Debug['enable_measure_piwik_usage_in_idsite'];
$view->isSuperUser = Access::getInstance()->hasSuperUserAccess();
$view->hasSomeAdminAccess = Piwik::isUserHasSomeAdminAccess();
$view->hasSomeViewAccess = Piwik::isUserHasSomeViewAccess();
diff --git a/core/Updates/2.15.0-b17.php b/core/Updates/2.15.0-b17.php
new file mode 100644
index 0000000000..86e3decf20
--- /dev/null
+++ b/core/Updates/2.15.0-b17.php
@@ -0,0 +1,44 @@
+<?php
+/**
+ * Piwik - free/libre analytics platform
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ *
+ */
+
+namespace Piwik\Updates;
+
+use Piwik\Config;
+use Piwik\Updater;
+use Piwik\Updates;
+
+/**
+ * Update for version 2.15.0-b17.
+ */
+class Updates_2_15_0_b17 extends Updates
+{
+ /**
+ * Perform the incremental version update.
+ *
+ * This method should preform all updating logic. If you define queries in an overridden `getMigrationQueries()`
+ * method, you must call {@link Updater::executeMigrationQueries()} here.
+ *
+ * See {@link Updates} for an example.
+ *
+ * @param Updater $updater
+ */
+ public function doUpdate(Updater $updater)
+ {
+ $this->removeDeprecatedDebugConfig('enable_measure_piwik_usage_in_idsite');
+ }
+
+ private function removeDeprecatedDebugConfig($name)
+ {
+ $config = Config::getInstance();
+ $debug = $config->Debug;
+ unset($debug[$name]);
+ $config->Debug = $debug;
+ $config->forceSave();
+ }
+}