Implemented consistency with directories. Closes #131.
This commit is contained in:
parent
fc6a3f15c2
commit
f1beb64ab1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue