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:
authorFabian Becker <fabian.becker@uni-tuebingen.de>2013-07-18 13:45:02 +0400
committerFabian Becker <fabian.becker@uni-tuebingen.de>2013-07-18 13:45:02 +0400
commit03b4953f008c1063e6d7166143ba844e8c6e89cc (patch)
tree7b9f0fef13d75417c551f813c98dba1a22f2fff3 /plugins/SEO
parent9b2c0a7a450fff3b634f8119c8003ae1d20b97d0 (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 'plugins/SEO')
-rw-r--r--plugins/SEO/Controller.php8
-rw-r--r--plugins/SEO/MajesticClient.php4
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/SEO/Controller.php b/plugins/SEO/Controller.php
index 00abd8337e..9e9945de83 100644
--- a/plugins/SEO/Controller.php
+++ b/plugins/SEO/Controller.php
@@ -8,7 +8,7 @@
* @category Piwik_Plugins
* @package Piwik_SEO
*/
-use Piwik\Core\Piwik_Common;
+use Piwik\Core\Common;
/**
* @package Piwik_SEO
@@ -17,16 +17,16 @@ class Piwik_SEO_Controller extends Piwik_Controller
{
function getRank()
{
- $idSite = Piwik_Common::getRequestVar('idSite');
+ $idSite = Common::getRequestVar('idSite');
$site = new Piwik_Site($idSite);
- $url = urldecode(Piwik_Common::getRequestVar('url', '', 'string'));
+ $url = urldecode(Common::getRequestVar('url', '', 'string'));
if (!empty($url) && strpos($url, 'http://') !== 0 && strpos($url, 'https://') !== 0) {
$url = 'http://' . $url;
}
- if (empty($url) || !Piwik_Common::isLookLikeUrl($url)) {
+ if (empty($url) || !Common::isLookLikeUrl($url)) {
$url = $site->getMainUrl();
}
diff --git a/plugins/SEO/MajesticClient.php b/plugins/SEO/MajesticClient.php
index 4834a66e8c..2e0b2ee5e6 100644
--- a/plugins/SEO/MajesticClient.php
+++ b/plugins/SEO/MajesticClient.php
@@ -8,7 +8,7 @@
* @category Piwik_Plugins
* @package Piwik_SEO
*/
-use Piwik\Core\Piwik_Common;
+use Piwik\Core\Common;
/**
* Client for Majestic SEO's HTTP API.
@@ -64,7 +64,7 @@ class Piwik_SEO_MajesticClient
'referrer_domains_count' => false
);
- $apiResponse = Piwik_Common::json_decode($apiResponse, $assoc = true);
+ $apiResponse = Common::json_decode($apiResponse, $assoc = true);
if (!empty($apiResponse)
&& !empty($apiResponse['Data'])
) {