diff options
Diffstat (limited to 'core/Option.php')
-rw-r--r-- | core/Option.php | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/core/Option.php b/core/Option.php index 75244c7f3a..da1905dc82 100644 --- a/core/Option.php +++ b/core/Option.php @@ -54,7 +54,7 @@ class Piwik_Option return $this->all[$name]; } $value = Piwik_FetchOne( 'SELECT option_value - FROM `' . Piwik_Common::prefixTable('option') . '` + FROM `' . Piwik::prefixTable('option') . '` WHERE option_name = ?', $name); if($value === false) { @@ -74,7 +74,7 @@ class Piwik_Option public function set($name, $value, $autoload = 0) { $autoload = (int)$autoload; - Piwik_Query('INSERT INTO `'. Piwik_Common::prefixTable('option') . '` (option_name, option_value, autoload) '. + Piwik_Query('INSERT INTO `'. Piwik::prefixTable('option') . '` (option_name, option_value, autoload) '. ' VALUES (?, ?, ?) '. ' ON DUPLICATE KEY UPDATE option_value = ?', array($name, $value, $autoload, $value)); @@ -89,7 +89,7 @@ class Piwik_Option return; } $all = Piwik_FetchAll('SELECT option_value, option_name - FROM `'. Piwik_Common::prefixTable('option') . '` + FROM `'. Piwik::prefixTable('option') . '` WHERE autoload = 1'); foreach($all as $option) { @@ -97,17 +97,6 @@ class Piwik_Option } $loaded = true; } - - /** - * Clears the cache - * Used in unit tests to reset the state of the object between tests - * - * @return void - */ - public function clearCache() - { - $this->all = array(); - } } function Piwik_GetOption($name) |