Skip to content

Commit

Permalink
Hide all abstract classes from ILS dropdown.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Jan 31, 2019
1 parent 58bba20 commit 2616882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/VuFind/src/VuFind/Controller/InstallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
) {
Expand Down

0 comments on commit 2616882

Please sign in to comment.