diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-01-07 10:40:10 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-01-07 10:40:10 +0400 |
commit | b570b062705bc368e6a11e25ccc7dd114cee11ce (patch) | |
tree | 29632fc978f8fbc73fee17ce344ae023052c8521 /core/WidgetsList.php | |
parent | 6e10965d9828468d30bdabc39be5c6efa37bd0ef (diff) |
Minor
Diffstat (limited to 'core/WidgetsList.php')
-rw-r--r-- | core/WidgetsList.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/WidgetsList.php b/core/WidgetsList.php index d2c2c63cc7..31f4ed6693 100644 --- a/core/WidgetsList.php +++ b/core/WidgetsList.php @@ -171,7 +171,7 @@ class WidgetsList return; } foreach (self::$widgets[$widgetCategory] as $id => $widget) { - if ($widget['name'] == $widgetName) { + if ($widget['name'] == $widgetName || $widget['name'] == Piwik::translate($widgetName)) { unset(self::$widgets[$widgetCategory][$id]); return; } |