From 2616882685006e7901343d2cf865ef471f04305d Mon Sep 17 00:00:00 2001 From: Demian Katz Date: Thu, 31 Jan 2019 12:36:53 -0500 Subject: [PATCH] Hide all abstract classes from ILS dropdown. --- module/VuFind/src/VuFind/Controller/InstallController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Controller/InstallController.php b/module/VuFind/src/VuFind/Controller/InstallController.php index 4ca799742f2..0bbd22c2a4a 100644 --- a/module/VuFind/src/VuFind/Controller/InstallController.php +++ b/module/VuFind/src/VuFind/Controller/InstallController.php @@ -555,11 +555,11 @@ public function fixilsAction() = opendir(APPLICATION_PATH . '/module/VuFind/src/VuFind/ILS/Driver'); $drivers = []; $blacklist = [ - 'Sample.php', 'Demo.php', 'DriverInterface.php', 'AbstractBase.php', - 'PluginManager.php', + 'Sample.php', 'Demo.php', 'DriverInterface.php', 'PluginManager.php', ]; while ($line = readdir($dir)) { if (stristr($line, '.php') && !in_array($line, $blacklist) + && substr($line, 0, 8) !== 'Abstract' && substr($line, -11) !== 'Factory.php' && substr($line, -9) !== 'Trait.php' ) {