mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
Single repository in config.ini converted to array in config.php.
This commit is contained in:
@@ -13,6 +13,12 @@ class Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
$data = parse_ini_file($file, true);
|
$data = parse_ini_file($file, true);
|
||||||
|
|
||||||
|
# Ensure that repositories item is an array
|
||||||
|
if (!is_array($data['git']['repositories'])) {
|
||||||
|
$data['git']['repositories'] = array($data['git']['repositories']);
|
||||||
|
}
|
||||||
|
|
||||||
return new static($data);
|
return new static($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user