diff options
author | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-07-18 13:33:23 +0400 |
---|---|---|
committer | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-07-18 13:33:23 +0400 |
commit | 9b2c0a7a450fff3b634f8119c8003ae1d20b97d0 (patch) | |
tree | f761b0baa3ef936a50777ea8c746a013cec387ca /plugins/API | |
parent | 181a36bbe3f3b9081d7bfe7e89a86b63fd6b5eb5 (diff) |
Refactor class Piwik_Commin to \Piwik\Core\Common
Notice that auto refactoring has created a nested namespace. Not sure this is what we want - so we might have to edit those nested namespaces afterwards (I think they don't look so good)
Diffstat (limited to 'plugins/API')
-rw-r--r-- | plugins/API/API.php | 5 | ||||
-rw-r--r-- | plugins/API/Controller.php | 1 | ||||
-rw-r--r-- | plugins/API/ProcessedReport.php | 1 | ||||
-rw-r--r-- | plugins/API/RowEvolution.php | 1 |
4 files changed, 6 insertions, 2 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php index 203d8295ff..a08e046c4b 100644 --- a/plugins/API/API.php +++ b/plugins/API/API.php @@ -9,6 +9,7 @@ * @package Piwik_API */ use Piwik\Core\Piwik; +use Piwik\Core\Piwik_Common; /** * @package Piwik_API @@ -552,7 +553,7 @@ class Piwik_API_API } $urls = array_map('urldecode', $urls); - $urls = array_map(array('Piwik_Common', 'unsanitizeInputValue'), $urls); + $urls = array_map(array('Piwik\Core\Piwik_Common', 'unsanitizeInputValue'), $urls); $result = array(); foreach ($urls as $url) { @@ -628,7 +629,7 @@ class Piwik_API_API arsort($values); $values = array_keys($values); - $values = array_map(array('Piwik_Common', 'unsanitizeInputValue'), $values); + $values = array_map(array('Piwik\Core\Piwik_Common', 'unsanitizeInputValue'), $values); $values = array_slice($values, 0, $maxSuggestionsToReturn); return $values; diff --git a/plugins/API/Controller.php b/plugins/API/Controller.php index a586b43b1a..8d70af3650 100644 --- a/plugins/API/Controller.php +++ b/plugins/API/Controller.php @@ -9,6 +9,7 @@ * @package Piwik_API */ use Piwik\Core\Config; +use Piwik\Core\Piwik_Common; /** * diff --git a/plugins/API/ProcessedReport.php b/plugins/API/ProcessedReport.php index 3657ffab25..318929f1ce 100644 --- a/plugins/API/ProcessedReport.php +++ b/plugins/API/ProcessedReport.php @@ -1,5 +1,6 @@ <?php use Piwik\Core\Piwik; +use Piwik\Core\Piwik_Common; /** * Piwik - Open source web analytics diff --git a/plugins/API/RowEvolution.php b/plugins/API/RowEvolution.php index cc762d11de..dfc24d6a6a 100644 --- a/plugins/API/RowEvolution.php +++ b/plugins/API/RowEvolution.php @@ -9,6 +9,7 @@ * @package Piwik_API */ use Piwik\Core\Piwik; +use Piwik\Core\Piwik_Common; /** * This class generates a Row evolution dataset, from input request |