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>2014-01-07 10:40:10 +0400
committermattab <matthieu.aubry@gmail.com>2014-01-07 10:40:10 +0400
commitb570b062705bc368e6a11e25ccc7dd114cee11ce (patch)
tree29632fc978f8fbc73fee17ce344ae023052c8521 /core/WidgetsList.php
parent6e10965d9828468d30bdabc39be5c6efa37bd0ef (diff)
Minor
Diffstat (limited to 'core/WidgetsList.php')
-rw-r--r--core/WidgetsList.php2
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;
}