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:
authorMatthieu Aubry <matt@piwik.org>2014-12-02 03:34:25 +0300
committerMatthieu Aubry <matt@piwik.org>2014-12-02 03:34:25 +0300
commita0d3bf94837642edafda458546497d703843854b (patch)
treeae558a78dc7488c3fc229889ac403ba757dce3e6 /core/Profiler.php
parent03165a76526de6b537f64c5953e927b50a0ab18a (diff)
parent4a2145a1a7fd21cefb7d79e83f3416027c251c0a (diff)
Merge pull request #6658 from piwik/tmp-path
Moved the `tmp/` path into the config (was hardcoded everywhere)
Diffstat (limited to 'core/Profiler.php')
-rw-r--r--core/Profiler.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Profiler.php b/core/Profiler.php
index 5a9d0ac68f..cb68432725 100644
--- a/core/Profiler.php
+++ b/core/Profiler.php
@@ -9,6 +9,7 @@
namespace Piwik;
use Exception;
+use Piwik\Container\StaticContainer;
use XHProfRuns_Default;
/**
@@ -337,6 +338,6 @@ class Profiler
*/
private static function getPathToXHProfRunIds()
{
- return PIWIK_INCLUDE_PATH . '/tmp/cache/tests-xhprof-runs';
+ return StaticContainer::getContainer()->get('path.tmp') . '/cache/tests-xhprof-runs';
}
}