]> git.agnieray.net Git - galette.git/commitdiff
Function waits for a paameter to pass by reference
authorJohan Cwiklinski <johan@x-tnd.be>
Thu, 11 Jun 2020 21:22:57 +0000 (23:22 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Thu, 11 Jun 2020 21:22:57 +0000 (23:22 +0200)
galette/lib/Galette/IO/FileTrait.php

index ea71e28549220a0115184d4dd888e671de9ed379..a983ac6d34ff2ea5e0b4bd7cf833a3ec52ad9821 100644 (file)
@@ -446,7 +446,8 @@ trait FileTrait
                 '[' . $class . '] Search from extension ',
                 Analog::DEBUG
             );
-            $ext = strtolower(array_pop(explode('.', $file)));
+            $exploded = explode('.', $file);
+            $ext = strtolower(array_pop($exploded));
             Analog::log(
                 '[' . $class . '] Extension : ' . $ext,
                 Analog::DEBUG