From 11a5c5b857318bd83f9086746e2a0c5ef289d599 Mon Sep 17 00:00:00 2001 From: ggoffy Date: Thu, 13 Aug 2020 08:47:40 +0200 Subject: [PATCH] removed unnecessary mb_strtolower --- class/Files/CreateStructure.php | 2 +- class/Modules.php | 2 +- class/Settings.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/class/Files/CreateStructure.php b/class/Files/CreateStructure.php index 77a7f6bc..587627f6 100644 --- a/class/Files/CreateStructure.php +++ b/class/Files/CreateStructure.php @@ -175,7 +175,7 @@ public function isDir($dname) */ protected function makeDir($dir) { - $this->isDir(\mb_strtolower(\trim($dir))); + $this->isDir(\trim($dir)); } /** diff --git a/class/Modules.php b/class/Modules.php index 61496153..d7c91f8f 100644 --- a/class/Modules.php +++ b/class/Modules.php @@ -253,7 +253,7 @@ public function getFormModules($action = false) $uploadDirectory = 'uploads/' . $GLOBALS['xoopsModule']->dirname() . '/images/modules'; $imgtray = new \XoopsFormElementTray(_AM_MODULEBUILDER_MODULE_IMAGE, '
'); - $imgpath = \sprintf(_AM_MODULEBUILDER_FORMIMAGE_PATH, './' . \mb_strtolower($uploadDirectory) . '/'); + $imgpath = \sprintf(_AM_MODULEBUILDER_FORMIMAGE_PATH, './' . $uploadDirectory . '/'); $imageselect = new \XoopsFormSelect($imgpath, 'mod_image', $modImage); $modImageArray = \XoopsLists::getImgListAsArray(TDMC_UPLOAD_IMGMOD_PATH); foreach ($modImageArray as $image) { diff --git a/class/Settings.php b/class/Settings.php index 75b41536..2f522456 100644 --- a/class/Settings.php +++ b/class/Settings.php @@ -186,7 +186,7 @@ public function getFormSettings($action = false) $uploadDirectory = 'uploads/' . $GLOBALS['xoopsModule']->dirname() . '/images/modules'; $imgtray = new \XoopsFormElementTray(_AM_MODULEBUILDER_SETTING_IMAGE, '
'); - $imgpath = \sprintf(_AM_MODULEBUILDER_FORMIMAGE_PATH, './' . \mb_strtolower($uploadDirectory) . '/'); + $imgpath = \sprintf(_AM_MODULEBUILDER_FORMIMAGE_PATH, './' . $uploadDirectory . '/'); $imageSelect = new \XoopsFormSelect($imgpath, 'set_image', $modImage); $modImage_array = \XoopsLists::getImgListAsArray(TDMC_UPLOAD_IMGMOD_PATH); foreach ($modImage_array as $image) {