diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/Controller.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/Controller.php b/modules/Controller.php index fe3a76b852..058f12eab0 100644 --- a/modules/Controller.php +++ b/modules/Controller.php @@ -17,7 +17,8 @@ abstract class Piwik_Controller { function __construct() { - + $aPluginName = explode('_', get_class($this)); + $this->pluginName = $aPluginName[1]; $this->strDate = Piwik_Common::getRequestVar('date', 'yesterday','string'); // the date looks like YYYY-MM-DD we can build it |