mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-02-06 22:59:50 +01:00
Enable app debug in config.ini
This commit is contained in:
@@ -6,6 +6,7 @@ repositories = '/var/www/projects/' ; Path to your repositories
|
||||
; hidden[] = '/var/www/projects/BetaTest'
|
||||
|
||||
[app]
|
||||
debug = false
|
||||
|
||||
; If you need to specify custom filetypes for certain extensions, do this here
|
||||
[filetypes]
|
||||
|
||||
@@ -18,6 +18,7 @@ if (empty($config['git']['repositories']) || !is_dir($config['git']['repositorie
|
||||
require 'vendor/autoload.php';
|
||||
|
||||
$app = new Silex\Application();
|
||||
$app['debug'] = isset($config['app']['debug']) && $config['app']['debug'];
|
||||
$app['filetypes'] = $config['filetypes'];
|
||||
$app['hidden'] = isset($config['git']['hidden']) ? $config['git']['hidden'] : array();
|
||||
$config['git']['repositories'] = rtrim($config['git']['repositories'], DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
|
||||
|
||||
Reference in New Issue
Block a user