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);
|
return $this->initLibrary($libraryName, $this->libraryClasses[$libraryNameLowerCase], $parameters);
|
||||||
|
|
||||||
// Try and load from the alternate directory if provided
|
// Try and load from the alternate directory if provided
|
||||||
$paths = $this->libraryPaths;
|
$paths = (empty($altDirectories) ? $this->libraryPaths : $altDirectories);
|
||||||
if (!empty($altDirectories))
|
|
||||||
$paths = $altDirectories;
|
|
||||||
|
|
||||||
// Try and find the library in the libraryPaths
|
// Try and find the library in the libraryPaths
|
||||||
foreach ($paths as $path)
|
foreach ($paths as $path)
|
||||||
|
|
Loading…
Reference in New Issue