mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-05-06 08:27:14 +02:00
Proper config namespace
This commit is contained in:
@@ -27,5 +27,5 @@ cache = true
|
||||
; map = true
|
||||
|
||||
; set the timezone
|
||||
[Date]
|
||||
[date]
|
||||
; timezone = UTC
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user