Proper config namespace

This commit is contained in:
Klaus Silveira
2014-05-17 09:32:28 -03:00
parent c223455ae8
commit 87355db0ab
2 changed files with 5 additions and 6 deletions

View File

@@ -27,5 +27,5 @@ cache = true
; map = true
; set the timezone
[Date]
[date]
; timezone = UTC

View File

@@ -1,11 +1,10 @@
<?php
/**
* GitList 0.4
* https://github.com/klaussilveira/gitlist
* GitList: an elegant and modern git repository viewer
* http://gitlist.org
*/
// Set the default timezone for systems without date.timezone set in php.ini
if (!ini_get('date.timezone')) {
date_default_timezone_set('UTC');
}
@@ -22,8 +21,8 @@ require 'vendor/autoload.php';
$config = GitList\Config::fromFile('config.ini');
if ($config->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';