diff options
Diffstat (limited to 'plugins/DBStats/DBStats.php')
-rw-r--r-- | plugins/DBStats/DBStats.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/DBStats/DBStats.php b/plugins/DBStats/DBStats.php index f75d4e8c95..47f83c0442 100644 --- a/plugins/DBStats/DBStats.php +++ b/plugins/DBStats/DBStats.php @@ -23,10 +23,16 @@ class DBStats extends \Piwik\Plugin public function registerEvents() { return array( - "TestingEnvironment.addHooks" => 'setupTestEnvironment' + "TestingEnvironment.addHooks" => 'setupTestEnvironment', + 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles', ); } + public function getStylesheetFiles(&$stylesheets) + { + $stylesheets[] = 'plugins/DBStats/stylesheets/dbstats.less'; + } + public function setupTestEnvironment($environment) { Piwik::addAction("MySQLMetadataProvider.createDao", function (&$dao) { |