From e374a6fd6499b50d4587d136490ced7444f8bc2b Mon Sep 17 00:00:00 2001 From: rzeka Date: Mon, 24 Feb 2014 21:08:56 +0100 Subject: Fixed timezone warning by adding timezone config option --- controllers/config.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'controllers/config.php') diff --git a/controllers/config.php b/controllers/config.php index e01b2082..51a04079 100644 --- a/controllers/config.php +++ b/controllers/config.php @@ -15,7 +15,8 @@ class Config extends Base 'values' => $this->config->getAll(), 'errors' => array(), 'menu' => 'config', - 'title' => t('Settings') + 'title' => t('Settings'), + 'timezones' => array_combine(timezone_identifiers_list(), timezone_identifiers_list()) ))); } @@ -32,8 +33,7 @@ class Config extends Base if ($this->config->save($values)) { $this->config->reload(); $this->session->flash(t('Settings saved successfully.')); - } - else { + } else { $this->session->flashError(t('Unable to save your settings.')); } @@ -48,7 +48,8 @@ class Config extends Base 'values' => $values, 'errors' => $errors, 'menu' => 'config', - 'title' => t('Settings') + 'title' => t('Settings'), + 'timezones' => array_combine(timezone_identifiers_list(), timezone_identifiers_list()) ))); } -- cgit v1.2.3