From f1beb64ab12c89804c418acd9002dcbcfcc4c28c Mon Sep 17 00:00:00 2001 From: Abel Date: Sat, 12 Jan 2019 11:31:01 +0100 Subject: [PATCH] Implemented consistency with directories. Closes #131. --- src/FuzeWorks/Libraries.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/FuzeWorks/Libraries.php b/src/FuzeWorks/Libraries.php index df69541..9a6ebdf 100644 --- a/src/FuzeWorks/Libraries.php +++ b/src/FuzeWorks/Libraries.php @@ -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)