diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-10-09 07:17:28 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-10-09 07:17:28 +0400 |
commit | 6d46df58dd4b16a5c8402e34ed018439cbbadee1 (patch) | |
tree | efaeabfe94ab8a601a96c80e1333ae83513f803e /plugins/Annotations/AnnotationList.php | |
parent | 9fb5490490913717ccfacec6f597181091be214f (diff) |
Refs #4202 removing functions Piwik_GetOption and SetOption. Now use: Option::get and Option::set and Option::delete
Diffstat (limited to 'plugins/Annotations/AnnotationList.php')
-rwxr-xr-x | plugins/Annotations/AnnotationList.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/Annotations/AnnotationList.php b/plugins/Annotations/AnnotationList.php index 9f114608e6..deca05a557 100755 --- a/plugins/Annotations/AnnotationList.php +++ b/plugins/Annotations/AnnotationList.php @@ -12,6 +12,7 @@ namespace Piwik\Plugins\Annotations; use Exception; use Piwik\Date; +use Piwik\Option; use Piwik\Piwik; use Piwik\Site; @@ -107,7 +108,7 @@ class AnnotationList $this->checkIdSiteIsLoaded($idSite); $optionName = self::getAnnotationCollectionOptionName($idSite); - Piwik_SetOption($optionName, serialize($this->annotations[$idSite])); + Option::set($optionName, serialize($this->annotations[$idSite])); } /** @@ -312,7 +313,7 @@ class AnnotationList $result = array(); foreach ($this->idSites as $id) { $optionName = self::getAnnotationCollectionOptionName($id); - $serialized = Piwik_GetOption($optionName); + $serialized = Option::get($optionName); if ($serialized !== false) { $result[$id] = unserialize($serialized); |