diff options
Diffstat (limited to 'api.php')
-rw-r--r-- | api.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |