summaryrefslogtreecommitdiffstats
path: root/api.php
diff options
context:
space:
mode:
authorSimon Rettberg2022-01-12 17:07:24 +0100
committerSimon Rettberg2022-03-09 15:06:54 +0100
commitf8361845693a691e04e843b8fb475ab2dd2fe8e2 (patch)
treeee8820b2bf3aa607a3a3560b4f151c68cbe2eb31 /api.php
parent[serversetup-bwlp-ipxe] Add GRUB localboot method (diff)
downloadslx-admin-f8361845693a691e04e843b8fb475ab2dd2fe8e2.tar.gz
slx-admin-f8361845693a691e04e843b8fb475ab2dd2fe8e2.tar.xz
slx-admin-f8361845693a691e04e843b8fb475ab2dd2fe8e2.zip
api: Don't use mb_strtolower
Diffstat (limited to 'api.php')
-rw-r--r--api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/api.php b/api.php
index 9e43a42a..23328993 100644
--- a/api.php
+++ b/api.php
@@ -13,7 +13,7 @@ if (CONFIG_SQL_PASS === '%MYSQL_OPENSLX_PASS%')
// Autoload classes from ./inc which adhere to naming scheme <lowercasename>.inc.php
spl_autoload_register(function ($class) {
- $file = 'inc/' . preg_replace('/[^a-z0-9]/', '', mb_strtolower($class)) . '.inc.php';
+ $file = 'inc/' . strtolower(preg_replace('/[^A-Za-z0-9]/', '', $class)) . '.inc.php';
if (!file_exists($file))
return;
require_once $file;