diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-04-07 14:26:32 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-04-07 14:26:32 +0400 |
commit | 15bf1f4aa05d35a07e2514b6bf79833d1f3987fb (patch) | |
tree | c0a6e7280088800cb95fa2b1e0db6dc3a85dc8d6 /plugins/SitesManager/Controller.php | |
parent | c05756fab526ff1d01385a45241ba18e7dc9961e (diff) |
Refs #56
* Adding timezone during piwik install. Will set default timezone, and use it for the first created website.
* Had to apply manual patch to QuickForm Select to handle optgroups, added unit tests to check patch is applied
* Skips the Database check screen if there was no error
Diffstat (limited to 'plugins/SitesManager/Controller.php')
-rw-r--r-- | plugins/SitesManager/Controller.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index 0f9889d450..84dc3d5a03 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -28,11 +28,7 @@ class Piwik_SitesManager_Controller extends Piwik_Controller } $view->adminSites = $sites; - try { - $timezones = Piwik_SitesManager_API::getInstance()->getTimezonesList(); - } catch(Exception $e) { - $timezones = array(); - } + $timezones = Piwik_SitesManager_API::getInstance()->getTimezonesList(); $view->timezoneSupported = Piwik::isTimezoneSupportEnabled(); $view->timezones = json_encode($timezones); $view->defaultTimezone = Piwik_SitesManager_API::getInstance()->getDefaultTimezone(); |