From 4caaafe3e69aa0c567715cf5cf0fc0a45bb3046e Mon Sep 17 00:00:00 2001 From: Fabrizio Balliano Date: Sat, 2 Mar 2024 23:14:40 +0000 Subject: [PATCH] Varien_Directory_Collection::getLastDir(): "$this" can no longer be used in a plain function or method, since PHP 7.1 (#3823) --- 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); }