diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-11 02:47:47 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-11 02:47:47 +0400 |
commit | 99053fd1c72cf609b843215396c5ca752c0120c0 (patch) | |
tree | 9fe1a73a7a7f00d2dcdf5017a7b8aa27636091eb /core | |
parent | 94c147bfa782d6597bbc312d3be10285634d94cf (diff) |
- adding new option default_period to specify which period to use by default in piwik (default is day)
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Controller.php b/core/Controller.php index 4cb83552fa..1c22c7b0e3 100644 --- a/core/Controller.php +++ b/core/Controller.php @@ -299,8 +299,8 @@ abstract class Piwik_Controller { $defaultDate = Zend_Registry::get('config')->General->default_day; } -// return Piwik_FrontController::getInstance()->dispatch($moduleToRedirect, $actionToRedirect, array('idSite'=>$firstSiteId,'period'=>'day','date'=>$defaultDate)); - header("Location:index.php?module=".$moduleToRedirect."&action=".$actionToRedirect."&idSite=$firstSiteId&period=day&date=$defaultDate"); + $defaultPeriod = Zend_Registry::get('config')->General->default_period; + header("Location:index.php?module=".$moduleToRedirect."&action=".$actionToRedirect."&idSite=$firstSiteId&period=$defaultPeriod&date=$defaultDate"); } else { |