Skip to content
Snippets Groups Projects
Commit 60dabf78 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Eliminate hard-coded .ini file list.

parent 1dd77063
Branches
Tags
No related merge requests found
......@@ -292,11 +292,14 @@ class Upgrade
{
// Configuration files to load. Note that config.ini must always be loaded
// first so that getOldConfigPath can work properly!
$configs = [
'config.ini', 'authority.ini', 'facets.ini', 'geofeatures.ini',
'reserves.ini', 'searches.ini', 'Summon.ini', 'WorldCat.ini', 'sms.ini',
'permissions.ini', 'Collection.ini', 'Primo.ini'
];
$configs = ['config.ini'];
foreach (glob($this->rawDir . '/*.ini') as $ini) {
$parts = explode('/', str_replace('\\', '/', $ini));
$filename = array_pop($parts);
if ($filename !== 'config.ini') {
$configs[] = $filename;
}
}
foreach ($configs as $config) {
// Special case for config.ini, since we may need to overlay extra
// settings:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment