diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-10-09 08:03:35 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-10-09 08:03:35 +0400 |
commit | 81ccb29b440e98ed9147e84781df0fce34ee6542 (patch) | |
tree | 378a809d208f6a2cc188489017b87a98501023f2 /core/WidgetsList.php | |
parent | 98935b7cca73c74dac77d3661239a2055e6b8f8f (diff) |
Refs #4202 removing functions Piwik_Translate and Piwik_TranslateException
Diffstat (limited to 'core/WidgetsList.php')
-rw-r--r-- | core/WidgetsList.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/WidgetsList.php b/core/WidgetsList.php index 71a813b64f..9f65561aba 100644 --- a/core/WidgetsList.php +++ b/core/WidgetsList.php @@ -43,10 +43,10 @@ class WidgetsList $widgets = array(); foreach (self::$widgets as $key => $v) { - if (isset($widgets[Piwik_Translate($key)])) { - $v = array_merge($widgets[Piwik_Translate($key)], $v); + if (isset($widgets[Piwik::translate($key)])) { + $v = array_merge($widgets[Piwik::translate($key)], $v); } - $widgets[Piwik_Translate($key)] = $v; + $widgets[Piwik::translate($key)] = $v; } return $widgets; } @@ -118,7 +118,7 @@ class WidgetsList */ static public function add($widgetCategory, $widgetName, $controllerName, $controllerAction, $customParameters = array()) { - $widgetName = Piwik_Translate($widgetName); + $widgetName = Piwik::translate($widgetName); $widgetUniqueId = 'widget' . $controllerName . $controllerAction; foreach ($customParameters as $name => $value) { if (is_array($value)) { |