From 87355db0ab5369206c2b9441060e6f804732f3a2 Mon Sep 17 00:00:00 2001 From: Klaus Silveira Date: Sat, 17 May 2014 09:32:28 -0300 Subject: [PATCH] Proper config namespace --- config.ini-example | 2 +- index.php | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/config.ini-example b/config.ini-example index 1046df2..d152919 100644 --- a/config.ini-example +++ b/config.ini-example @@ -27,5 +27,5 @@ cache = true ; map = true ; set the timezone -[Date] +[date] ; timezone = UTC diff --git a/index.php b/index.php index 2c845c5..e3f25a5 100644 --- a/index.php +++ b/index.php @@ -1,11 +1,10 @@ get('Date', 'timezone')) { - date_default_timezone_set($config->get('Date', 'timezone')); +if ($config->get('date', 'timezone')) { + date_default_timezone_set($config->get('date', 'timezone')); } $app = require 'boot.php';