Implemented consistency with directories. Closes #131.

This commit is contained in:
Abel Hoogeveen 2019-01-12 11:31:01 +01:00
parent fc6a3f15c2
commit f1beb64ab1
No known key found for this signature in database
GPG Key ID: 96C2234920BF4292
1 changed files with 1 additions and 3 deletions

View File

@ -142,9 +142,7 @@ class Libraries
return $this->initLibrary($libraryName, $this->libraryClasses[$libraryNameLowerCase], $parameters);
// Try and load from the alternate directory if provided
$paths = $this->libraryPaths;
if (!empty($altDirectories))
$paths = $altDirectories;
$paths = (empty($altDirectories) ? $this->libraryPaths : $altDirectories);
// Try and find the library in the libraryPaths
foreach ($paths as $path)