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:
authormattab <matthieu.aubry@gmail.com>2013-07-31 01:13:56 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-31 01:13:56 +0400
commit765be0dc8f92a6d4bb3e678a0c23f2d4b95e0e18 (patch)
tree3a0ae0e7334250446b687667e4d365af6975e0f4 /misc/others
parent5104d94f3b2250f766b9c520e2da8da9b4cab2e9 (diff)
Refs #3741 Resuming PHP Namespaces conversion of Piwik core, mostly finished core/ conversion
Diffstat (limited to 'misc/others')
-rwxr-xr-xmisc/others/geoipUpdateRows.php1
-rw-r--r--misc/others/iframeWidget_localhost.php1
-rw-r--r--misc/others/test_generateLotsVisitsWebsites.php10
3 files changed, 7 insertions, 5 deletions
diff --git a/misc/others/geoipUpdateRows.php b/misc/others/geoipUpdateRows.php
index 7a2a3de32e..b0ffb11d7c 100755
--- a/misc/others/geoipUpdateRows.php
+++ b/misc/others/geoipUpdateRows.php
@@ -4,6 +4,7 @@ use Piwik\Piwik;
use Piwik\Common;
use Piwik\FrontController;
use Piwik\IP;
+use Piwik\Db;
ini_set("memory_limit", "512M");
error_reporting(E_ALL | E_NOTICE);
diff --git a/misc/others/iframeWidget_localhost.php b/misc/others/iframeWidget_localhost.php
index bcaef1a2b6..d83fb26c31 100644
--- a/misc/others/iframeWidget_localhost.php
+++ b/misc/others/iframeWidget_localhost.php
@@ -1,6 +1,7 @@
<?php
use Piwik\Common;
use Piwik\FrontController;
+use Piwik\WidgetsList;
use Piwik\Url;
exit;
diff --git a/misc/others/test_generateLotsVisitsWebsites.php b/misc/others/test_generateLotsVisitsWebsites.php
index 260b146851..2c8837100a 100644
--- a/misc/others/test_generateLotsVisitsWebsites.php
+++ b/misc/others/test_generateLotsVisitsWebsites.php
@@ -41,7 +41,7 @@ class Piwik_StressTests_CopyLogs
$endDate = '2011-08-12';
$this->log("Starting...");
- $db = Zend_Registry::get('db');
+ $db = \Zend_Registry::get('db');
$initial = $this->getVisitsToday();
$this->log(" Visits today so far: " . $initial);
@@ -102,7 +102,7 @@ class Piwik_StressTests_CopyLogs
function delete()
{
$this->log("Deleting logs for today...");
- $db = Zend_Registry::get('db');
+ $db = \Zend_Registry::get('db');
$sql = "DELETE FROM " . Common::prefixTable('log_visit') . "
WHERE date(visit_last_action_time) = CURRENT_DATE();";
$db->query($sql);
@@ -124,13 +124,13 @@ class Piwik_StressTests_CopyLogs
function getVisitsToday()
{
$sql = "SELECT count(*) FROM `" . Common::prefixTable('log_visit') . "` WHERE idsite >= 1 AND DATE(`visit_last_action_time`) = CURRENT_DATE;";
- return Zend_Registry::get('db')->fetchOne($sql);
+ return \Zend_Registry::get('db')->fetchOne($sql);
}
function getConversionItemsToday($table = 'log_conversion_item')
{
$sql = "SELECT count(*) FROM `" . Common::prefixTable($table) . "` WHERE idsite >= 1 AND DATE(`server_time`) = CURRENT_DATE;";
- return Zend_Registry::get('db')->fetchOne($sql);
+ return \Zend_Registry::get('db')->fetchOne($sql);
}
function getConversionsToday()
@@ -141,6 +141,6 @@ class Piwik_StressTests_CopyLogs
function getActionsToday()
{
$sql = "SELECT count(*) FROM `" . Common::prefixTable('log_link_visit_action') . "` WHERE idsite >= 1 AND DATE(`server_time`) = CURRENT_DATE;";
- return Zend_Registry::get('db')->fetchOne($sql);
+ return \Zend_Registry::get('db')->fetchOne($sql);
}
}