Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Jan 7, 2014
1 parent 6e10965 commit b570b06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion core/WidgetsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ static public function remove($widgetCategory, $widgetName = false)
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;
}
Expand Down
9 changes: 0 additions & 9 deletions plugins/DBStats/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@ protected function __construct()
$this->metadataProvider = new MySQLMetadataProvider();
}

/**
* 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.
Expand Down

0 comments on commit b570b06

Please sign in to comment.