From 25dd7873c92e19d666c9c9462adee3ce1b64dc2a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 14 Nov 2025 16:54:58 +0100 Subject: [PATCH] use new Seeddms\Seeddms\Utilities --- inc/inc.ClassExtensionMgr.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/inc/inc.ClassExtensionMgr.php b/inc/inc.ClassExtensionMgr.php index 146ae72cb..02019044b 100644 --- a/inc/inc.ClassExtensionMgr.php +++ b/inc/inc.ClassExtensionMgr.php @@ -16,6 +16,8 @@ namespace Seeddms\Seeddms; +use Seeddms\Seeddms\Utilities; + /** * Class to represent an extension manager * @@ -519,7 +521,7 @@ $EXT_CONF = '.var_export($EXT_CONF, true).';'); $newdir = addDirSep($this->cachedir)."ext.new"; /* First remove a left over from a previous extension */ if(file_exists($newdir)) { - SeedDMS_Utils::rrmdir($newdir); + Utilities::rrmdir($newdir); } if(!mkdir($newdir, 0755)) { $this->errmsgs[] = "Cannot create temp. extension directory"; @@ -539,7 +541,7 @@ $EXT_CONF = '.var_export($EXT_CONF, true).';'); /* Check if extension is complete and fullfills the constraints */ if(!self::checkExtensionByDir($newdir)) { - SeedDMS_Utils::rrmdir($newdir); + Utilities::rrmdir($newdir); return false; } @@ -550,11 +552,11 @@ $EXT_CONF = '.var_export($EXT_CONF, true).';'); if(!is_dir($this->extdir)) { if(!mkdir($this->extdir, 0755)) { $this->errmsgs[] = "Cannot create extension directory"; - SeedDMS_Utils::rrmdir($newdir); + Utilities::rrmdir($newdir); return false; } } elseif(is_dir($this->extdir ."/". $extname)) { - SeedDMS_Utils::rrmdir($this->extdir ."/". $extname); + Utilities::rrmdir($this->extdir ."/". $extname); } /* Move the temp. created ext directory to the final location */ /* rename() may fail if dirs are moved from one device to another. @@ -576,7 +578,7 @@ $EXT_CONF = '.var_export($EXT_CONF, true).';'); * has been copied. */ $this->errmsgs[] = "Cannot move temp. extension directory to final destination"; - SeedDMS_Utils::rrmdir($this->extdir ."/". $extname); + Utilities::rrmdir($this->extdir ."/". $extname); return false; }