From 9d4c755437f7d93ee17ce3effad0c7b3ed6c581f Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Mon, 8 Oct 2018 15:15:23 -0400 Subject: [PATCH] Filter ILS drop-down correctly. --- module/VuFind/src/VuFind/Controller/InstallController.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Controller/InstallController.php b/module/VuFind/src/VuFind/Controller/InstallController.php index 763569daa28..4ca799742f2 100644 --- a/module/VuFind/src/VuFind/Controller/InstallController.php +++ b/module/VuFind/src/VuFind/Controller/InstallController.php @@ -556,10 +556,13 @@ class InstallController extends AbstractBase $drivers = []; $blacklist = [ 'Sample.php', 'Demo.php', 'DriverInterface.php', 'AbstractBase.php', - 'PluginManager.php', 'PluginFactory.php' + 'PluginManager.php', ]; 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); } } -- GitLab