diff options
author | Thomas ZILLIOX <thomas@zilliox.me> | 2013-06-20 01:54:02 +0400 |
---|---|---|
committer | Thomas ZILLIOX <thomas@zilliox.me> | 2013-06-20 01:54:02 +0400 |
commit | 5dc13b6807d2ad14c15ced69077b7a91a82df00c (patch) | |
tree | 350eeb33896585e1838e9ce431ce680dca18835a /plugins/DBStats/DBStats.php | |
parent | 1b145d391b7120ba425f058028e2de7d16ac783c (diff) |
Remove inline styles from DBStats plugin
Diffstat (limited to 'plugins/DBStats/DBStats.php')
-rw-r--r-- | plugins/DBStats/DBStats.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/DBStats/DBStats.php b/plugins/DBStats/DBStats.php index 479596f30a..044e01ddc8 100644 --- a/plugins/DBStats/DBStats.php +++ b/plugins/DBStats/DBStats.php @@ -30,6 +30,7 @@ class Piwik_DBStats extends Piwik_Plugin function getListHooksRegistered() { return array( + 'AssetManager.getCssFiles' => 'getCssFiles', 'AdminMenu.add' => 'addMenu', 'TaskScheduler.getScheduledTasks' => 'getScheduledTasks', ); @@ -76,6 +77,15 @@ class Piwik_DBStats extends Piwik_Plugin Piwik_SetOption(self::TIME_OF_LAST_TASK_RUN_OPTION, $now); } + /** + * @param Piwik_Event_Notification $notification notification object + */ + function getCssFiles($notification) + { + $cssFiles = & $notification->getNotificationObject(); + $cssFiles[] = "plugins/DBStats/stylesheets/dbstatsTable.css"; + } + /** Returns the date when the cacheDataByArchiveNameReports was last run. */ public static function getDateOfLastCachingRun() { |