diff options
author | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-07-18 13:45:02 +0400 |
---|---|---|
committer | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-07-18 13:45:02 +0400 |
commit | 03b4953f008c1063e6d7166143ba844e8c6e89cc (patch) | |
tree | 7b9f0fef13d75417c551f813c98dba1a22f2fff3 /core/API/Proxy.php | |
parent | 9b2c0a7a450fff3b634f8119c8003ae1d20b97d0 (diff) |
Refactor class Piwik_Common 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 'core/API/Proxy.php')
-rw-r--r-- | core/API/Proxy.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/API/Proxy.php b/core/API/Proxy.php index 16a0f6dd32..ae07892e3d 100644 --- a/core/API/Proxy.php +++ b/core/API/Proxy.php @@ -8,7 +8,7 @@ * @category Piwik * @package Piwik */ -use Piwik\Core\Piwik_Common; +use Piwik\Core\Common; /** * To differentiate between "no value" and default value of null @@ -281,7 +281,7 @@ class Piwik_API_Proxy foreach ($requiredParameters as $name => $defaultValue) { try { if ($defaultValue instanceof Piwik_API_Proxy_NoDefaultValue) { - $requestValue = Piwik_Common::getRequestVar($name, null, null, $parametersRequest); + $requestValue = Common::getRequestVar($name, null, null, $parametersRequest); } else { try { @@ -289,7 +289,7 @@ class Piwik_API_Proxy // segment parameter is an exception: we do not want to sanitize user input or it would break the segment encoding $requestValue = ($parametersRequest['segment']); } else { - $requestValue = Piwik_Common::getRequestVar($name, $defaultValue, null, $parametersRequest); + $requestValue = Common::getRequestVar($name, $defaultValue, null, $parametersRequest); } } catch (Exception $e) { // Special case: empty parameter in the URL, should return the empty string |