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-10-09 07:17:28 +0400
committermattab <matthieu.aubry@gmail.com>2013-10-09 07:17:28 +0400
commit6d46df58dd4b16a5c8402e34ed018439cbbadee1 (patch)
treeefaeabfe94ab8a601a96c80e1333ae83513f803e /core/Updater.php
parent9fb5490490913717ccfacec6f597181091be214f (diff)
Refs #4202 removing functions Piwik_GetOption and SetOption. Now use: Option::get and Option::set and Option::delete
Diffstat (limited to 'core/Updater.php')
-rw-r--r--core/Updater.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Updater.php b/core/Updater.php
index 0bbc6280ae..1ccdb78e18 100644
--- a/core/Updater.php
+++ b/core/Updater.php
@@ -55,7 +55,7 @@ class Updater
public static function recordComponentSuccessfullyUpdated($name, $version)
{
try {
- Piwik_SetOption(self::getNameInOptionTable($name), $version, $autoLoad = 1);
+ Option::set(self::getNameInOptionTable($name), $version, $autoLoad = 1);
} catch (\Exception $e) {
// case when the option table is not yet created (before 0.2.10)
}
@@ -245,7 +245,7 @@ class Updater
foreach ($this->componentsToCheck as $name => $version) {
try {
- $currentVersion = Piwik_GetOption(self::getNameInOptionTable($name));
+ $currentVersion = Option::get(self::getNameInOptionTable($name));
} catch (\Exception $e) {
// mysql error 1146: table doesn't exist
if (Db::get()->isErrNo($e, '1146')) {