From 2c5688fdf09e4cd22723620199333459db86a5e0 Mon Sep 17 00:00:00 2001 From: Jay Trees Date: Wed, 22 Jul 2026 13:47:47 +0200 Subject: [PATCH] fix: #158 renamed admin directory not found during install --- mmlc_installer.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mmlc_installer.php b/mmlc_installer.php index 1bf9951..a98ea5b 100644 --- a/mmlc_installer.php +++ b/mmlc_installer.php @@ -242,15 +242,13 @@ private function getAdminDirs() $fileName = basename($filePath); $fileNameLower = strtolower($fileName); - if (strpos($fileNameLower, 'admin') !== 0) { - continue; + if (strpos($fileNameLower, 'admin') !== false && is_dir($fileName)) { + $adminDirs[] = $fileName; } - if (!file_exists($filePath . '/check_update.php')) { - continue; + if (file_exists($filePath . '/check_update.php')) { + $adminDirs[] = $fileName; } - - $adminDirs[] = $fileName; } return $adminDirs;