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
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2019-01-30 03:28:01 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-01-30 03:28:01 +0300
commitfaa8c3892b93b37cb358b4efae5ee387317982a1 (patch)
tree33c1701d8bb86faba6a6467d59cda43cdcd5fb4a /core/Updater.php
parentcec026c1dc1a77a3e714ee85c601301cd298b43f (diff)
Don't hardcode plugins directory (#14043)
* do not hard code plugins directory * remove method that is not needed for now * use plugins directory in more places
Diffstat (limited to 'core/Updater.php')
-rw-r--r--core/Updater.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Updater.php b/core/Updater.php
index ba9a0caa83..2bb6ebcb2d 100644
--- a/core/Updater.php
+++ b/core/Updater.php
@@ -10,6 +10,7 @@ namespace Piwik;
use Piwik\Columns\Updater as ColumnUpdater;
use Piwik\Container\StaticContainer;
+use Piwik\Plugin\Manager;
use Piwik\Plugins\Installation\ServerFilesGenerator;
use Piwik\Updater\Migration;
use Piwik\Updater\Migration\Db\Sql;
@@ -62,7 +63,7 @@ class Updater
public function __construct($pathUpdateFileCore = null, $pathUpdateFilePlugins = null, Columns\Updater $columnsUpdater = null)
{
$this->pathUpdateFileCore = $pathUpdateFileCore ?: PIWIK_INCLUDE_PATH . '/core/Updates/';
- $this->pathUpdateFilePlugins = $pathUpdateFilePlugins ?: PIWIK_INCLUDE_PATH . '/plugins/%s/Updates/';
+ $this->pathUpdateFilePlugins = $pathUpdateFilePlugins ?: Manager::getPluginsDirectory() . '%s/Updates/';
$this->columnsUpdater = $columnsUpdater ?: new Columns\Updater();
self::$activeInstance = $this;