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:
authormattpiwik <matthieu.aubry@gmail.com>2008-12-24 20:14:35 +0300
committermattpiwik <matthieu.aubry@gmail.com>2008-12-24 20:14:35 +0300
commitaf5490d757da643cde0e386bc1dc2bac7656e794 (patch)
tree383c3ad9a3bd6faf9c2209809724310a355e0f5f /core/Tracker/Db.php
parentf257895928bb781ffd179ff4d4370eb331d90c83 (diff)
- adding CacheFile for caching data used in Tracker/* code
- adding form to add / edit a Goal - fixing line ending to Unix git-svn-id: http://dev.piwik.org/svn/trunk@842 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Tracker/Db.php')
-rw-r--r--core/Tracker/Db.php21
1 files changed, 5 insertions, 16 deletions
diff --git a/core/Tracker/Db.php b/core/Tracker/Db.php
index 13d23d1a26..b9a5be2978 100644
--- a/core/Tracker/Db.php
+++ b/core/Tracker/Db.php
@@ -110,21 +110,6 @@ class Piwik_Tracker_Db
}
$this->connection = null;
}
-
- /**
- * Returns the table name prefixed by the table prefix.
- *
- * @param string The table name to prefix, ie "log_visit"
- * @return string The table name prefixed, ie "piwik-production_log_visit"
- */
- static public function prefixTable( $suffix )
- {
- static $prefix;
- if (!isset($prefix)) {
- $prefix = Piwik_Tracker_Config::getInstance()->database['tables_prefix'];
- }
- return $prefix . $suffix;
- }
/**
* Returns an array containing all the rows of a query result, using optional bound parameters.
@@ -175,7 +160,7 @@ class Piwik_Tracker_Db
* Executes a query, using optional bound parameters.
*
* @param string Query
- * @param array Parameters to bind
+ * @param array|string Parameters to bind array('idsite'=> 1)
*
* @return PDOStatement or false if failed
* @throw Exception if an exception occured
@@ -192,6 +177,10 @@ class Piwik_Tracker_Db
$timer = $this->initProfiler();
}
+ if(!is_array($parameters))
+ {
+ $parameters = array( $parameters );
+ }
$sth = $this->connection->prepare($query);
$sth->execute( $parameters );