From 81ccb29b440e98ed9147e84781df0fce34ee6542 Mon Sep 17 00:00:00 2001 From: mattab Date: Wed, 9 Oct 2013 17:03:35 +1300 Subject: Refs #4202 removing functions Piwik_Translate and Piwik_TranslateException --- core/WidgetsList.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/WidgetsList.php') 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)) { -- cgit v1.2.3