From 22d8115234e152b91620f5eaec88573e0801d633 Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 1 Feb 2008 04:17:22 +0000 Subject: finished splitting HomeController in all the plugins controller --- modules/Controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/Controller.php') 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 -- cgit v1.2.3