diff options
-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. * |