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:
authorrobocoder <anthon.pang@gmail.com>2010-04-08 04:51:36 +0400
committerrobocoder <anthon.pang@gmail.com>2010-04-08 04:51:36 +0400
commit0ac8f43674b61becd4d50dc68bb4bb3ea1f4914f (patch)
tree95704908e0bd81c155f56b2b4c99dc298ae7a551 /core/Access.php
parent4dc5cac233d8d622de003b790a3eedf18015614b (diff)
fixes #1261 - SitesManager: add getSitesIdFromSiteUrl( $url ) to API; add unit test
git-svn-id: http://dev.piwik.org/svn/trunk@2061 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Access.php')
-rw-r--r--core/Access.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Access.php b/core/Access.php
index f37d53e1ed..fb32b5b3a3 100644
--- a/core/Access.php
+++ b/core/Access.php
@@ -146,7 +146,7 @@ class Piwik_Access
// we join with site in case there are rows in access for an idsite that doesn't exist anymore
// (backward compatibility ; before we deleted the site without deleting rows in _access table)
- $accessRaw = Piwik_FetchAll($this->getSqlAccessSite("access, t2.idsite"), $this->login);
+ $accessRaw = Piwik_FetchAll(self::getSqlAccessSite("access, t2.idsite"), $this->login);
foreach($accessRaw as $access)
{
$this->idsitesByAccess[$access['access']][] = $access['idsite'];
@@ -160,7 +160,7 @@ class Piwik_Access
* @param $select eg. "MIN(ts_created)"
* @return string SQL query
*/
- private function getSqlAccessSite($select)
+ static public function getSqlAccessSite($select)
{
return "SELECT ". $select ."
FROM ".Piwik::prefixTable('access'). " as t1
@@ -255,7 +255,7 @@ class Piwik_Access
{
return Piwik_FetchOne('SELECT MIN(ts_created) FROM '.Piwik::prefixTable('site'));
}
- return Piwik_FetchOne($this->getSqlAccessSite("MIN(ts_created)"), $this->login);
+ return Piwik_FetchOne(self::getSqlAccessSite("MIN(ts_created)"), $this->login);
}