diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-05-19 07:30:42 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-05-19 07:30:42 +0400 |
commit | e620f0ba6d80381d896d5e6a06cb35a345a3cf37 (patch) | |
tree | 2468f7c594736a17372ad316047f491eda340cba /plugins | |
parent | 5161aaaecc7c074827364ec2a537e0ddf325ac44 (diff) |
Fixes #5181 Renamed method
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreAdminHome/CustomLogo.php | 2 | ||||
-rw-r--r-- | plugins/CoreConsole/Commands/WatchLog.php | 2 | ||||
-rw-r--r-- | plugins/CorePluginsAdmin/PluginInstaller.php | 6 | ||||
-rw-r--r-- | plugins/CoreUpdater/Controller.php | 4 | ||||
-rw-r--r-- | plugins/ImageGraph/StaticGraph.php | 2 | ||||
-rw-r--r-- | plugins/ScheduledReports/config/tcpdf_config.php | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/plugins/CoreAdminHome/CustomLogo.php b/plugins/CoreAdminHome/CustomLogo.php index f4c95c49b3..7f543973c3 100644 --- a/plugins/CoreAdminHome/CustomLogo.php +++ b/plugins/CoreAdminHome/CustomLogo.php @@ -147,7 +147,7 @@ class CustomLogo protected static function rewritePath($path) { - return SettingsPiwik::rewriteMiscUserPathWithHostname($path); + return SettingsPiwik::rewriteMiscUserPathWithInstanceId($path); } public function copyUploadedLogoToFilesystem() diff --git a/plugins/CoreConsole/Commands/WatchLog.php b/plugins/CoreConsole/Commands/WatchLog.php index ce89fa85e4..fc06dae46a 100644 --- a/plugins/CoreConsole/Commands/WatchLog.php +++ b/plugins/CoreConsole/Commands/WatchLog.php @@ -27,7 +27,7 @@ class WatchLog extends ConsoleCommand protected function execute(InputInterface $input, OutputInterface $output) { $path = sprintf('%s/tmp/logs/', PIWIK_DOCUMENT_ROOT); - $path = SettingsPiwik::rewriteTmpPathWithHostname($path); + $path = SettingsPiwik::rewriteTmpPathWithInstanceId($path); $cmd = sprintf('tail -f %s*.log', $path); $output->writeln('Executing command: ' . $cmd); diff --git a/plugins/CorePluginsAdmin/PluginInstaller.php b/plugins/CorePluginsAdmin/PluginInstaller.php index 434332b81f..a3ecdecff2 100644 --- a/plugins/CorePluginsAdmin/PluginInstaller.php +++ b/plugins/CorePluginsAdmin/PluginInstaller.php @@ -35,8 +35,8 @@ class PluginInstaller $tmpPluginZip = PIWIK_USER_PATH . self::PATH_TO_DOWNLOAD . $this->pluginName . '.zip'; $tmpPluginFolder = PIWIK_USER_PATH . self::PATH_TO_DOWNLOAD . $this->pluginName; - $tmpPluginZip = SettingsPiwik::rewriteTmpPathWithHostname($tmpPluginZip); - $tmpPluginFolder = SettingsPiwik::rewriteTmpPathWithHostname($tmpPluginFolder); + $tmpPluginZip = SettingsPiwik::rewriteTmpPathWithInstanceId($tmpPluginZip); + $tmpPluginFolder = SettingsPiwik::rewriteTmpPathWithInstanceId($tmpPluginFolder); try { $this->makeSureFoldersAreWritable(); @@ -63,7 +63,7 @@ class PluginInstaller public function installOrUpdatePluginFromFile($pathToZip) { $tmpPluginFolder = PIWIK_USER_PATH . self::PATH_TO_DOWNLOAD . $this->pluginName; - $tmpPluginFolder = SettingsPiwik::rewriteTmpPathWithHostname($tmpPluginFolder); + $tmpPluginFolder = SettingsPiwik::rewriteTmpPathWithInstanceId($tmpPluginFolder); try { $this->makeSureFoldersAreWritable(); diff --git a/plugins/CoreUpdater/Controller.php b/plugins/CoreUpdater/Controller.php index 11c2d160cb..126701f540 100644 --- a/plugins/CoreUpdater/Controller.php +++ b/plugins/CoreUpdater/Controller.php @@ -179,7 +179,7 @@ class Controller extends \Piwik\Plugin\Controller private function oneClick_Download() { $pathPiwikZip = PIWIK_USER_PATH . self::PATH_TO_EXTRACT_LATEST_VERSION . 'latest.zip'; - $this->pathPiwikZip = SettingsPiwik::rewriteTmpPathWithHostname($pathPiwikZip); + $this->pathPiwikZip = SettingsPiwik::rewriteTmpPathWithInstanceId($pathPiwikZip); Filechecks::dieIfDirectoriesNotWritable(array(self::PATH_TO_EXTRACT_LATEST_VERSION)); @@ -192,7 +192,7 @@ class Controller extends \Piwik\Plugin\Controller private function oneClick_Unpack() { $pathExtracted = PIWIK_USER_PATH . self::PATH_TO_EXTRACT_LATEST_VERSION; - $pathExtracted = SettingsPiwik::rewriteTmpPathWithHostname($pathExtracted); + $pathExtracted = SettingsPiwik::rewriteTmpPathWithInstanceId($pathExtracted); $this->pathRootExtractedPiwik = $pathExtracted . 'piwik'; diff --git a/plugins/ImageGraph/StaticGraph.php b/plugins/ImageGraph/StaticGraph.php index 10c20260db..71d08162e2 100644 --- a/plugins/ImageGraph/StaticGraph.php +++ b/plugins/ImageGraph/StaticGraph.php @@ -240,7 +240,7 @@ abstract class StaticGraph protected static function getOutputPath($filename) { $outputFilename = PIWIK_USER_PATH . '/tmp/assets/' . $filename; - $outputFilename = SettingsPiwik::rewriteTmpPathWithHostname($outputFilename); + $outputFilename = SettingsPiwik::rewriteTmpPathWithInstanceId($outputFilename); @chmod($outputFilename, 0600); @unlink($outputFilename); diff --git a/plugins/ScheduledReports/config/tcpdf_config.php b/plugins/ScheduledReports/config/tcpdf_config.php index 9d5317156c..e084760949 100644 --- a/plugins/ScheduledReports/config/tcpdf_config.php +++ b/plugins/ScheduledReports/config/tcpdf_config.php @@ -15,7 +15,7 @@ define('K_PATH_MAIN', PIWIK_INCLUDE_PATH . '/libs/tcpdf/'); $pathTmpTCPDF = PIWIK_USER_PATH . '/tmp/tcpdf/'; -$pathTmpTCPDF = \Piwik\SettingsPiwik::rewriteTmpPathWithHostname($pathTmpTCPDF); +$pathTmpTCPDF = \Piwik\SettingsPiwik::rewriteTmpPathWithInstanceId($pathTmpTCPDF); define('K_PATH_CACHE', $pathTmpTCPDF); define('K_PATH_IMAGES', $pathTmpTCPDF); |