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 | |
parent | 6e10965d9828468d30bdabc39be5c6efa37bd0ef (diff) |
Minor
-rw-r--r-- | core/WidgetsList.php | 2 | ||||
-rw-r--r-- | plugins/DBStats/API.php | 9 |
2 files changed, 1 insertions, 10 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; } diff --git a/plugins/DBStats/API.php b/plugins/DBStats/API.php index 79169ac422..402322c8a1 100644 --- a/plugins/DBStats/API.php +++ b/plugins/DBStats/API.php @@ -41,15 +41,6 @@ class API extends \Piwik\Plugin\API } /** - * Forces the next table status request to issue a query by reseting the table status cache. - */ - public function resetTableStatuses() - { - Piwik::checkUserIsSuperUser(); - self::getInstance()->metadataProvider = new MySQLMetadataProvider(); - } - - /** * Gets some general information about this Piwik installation, including the count of * websites tracked, the count of users and the total space used by the database. * |