Skip to content
Snippets Groups Projects
Commit 9d4c7554 authored by Demian Katz's avatar Demian Katz
Browse files

Filter ILS drop-down correctly.

parent e271db3a
No related merge requests found
...@@ -556,10 +556,13 @@ class InstallController extends AbstractBase ...@@ -556,10 +556,13 @@ class InstallController extends AbstractBase
$drivers = []; $drivers = [];
$blacklist = [ $blacklist = [
'Sample.php', 'Demo.php', 'DriverInterface.php', 'AbstractBase.php', 'Sample.php', 'Demo.php', 'DriverInterface.php', 'AbstractBase.php',
'PluginManager.php', 'PluginFactory.php' 'PluginManager.php',
]; ];
while ($line = readdir($dir)) { while ($line = readdir($dir)) {
if (stristr($line, '.php') && !in_array($line, $blacklist)) { if (stristr($line, '.php') && !in_array($line, $blacklist)
&& substr($line, -11) !== 'Factory.php'
&& substr($line, -9) !== 'Trait.php'
) {
$drivers[] = str_replace('.php', '', $line); $drivers[] = str_replace('.php', '', $line);
} }
} }
......
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