From 33218d71739a39a260977c9fef5be16d3065a191 Mon Sep 17 00:00:00 2001 From: Fabrizio Balliano Date: Fri, 9 Feb 2024 09:34:25 +0000 Subject: [PATCH] Varien_Directory_Collection::getLastDir(): "$this" can no longer be used in a plain function or method, since PHP 7.1 --- lib/Varien/Directory/Collection.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/Varien/Directory/Collection.php b/lib/Varien/Directory/Collection.php index b3897f449c4..a531cf07b4e 100644 --- a/lib/Varien/Directory/Collection.php +++ b/lib/Varien/Directory/Collection.php @@ -145,9 +145,6 @@ public function lastDir() */ public static function getLastDir($path) { - if ($path == '') { - $path = $this->getPath(); - } $last = strrpos($path, "/"); return substr($path, $last + 1); }