diff options
author | Simon Rettberg | 2017-10-06 18:00:43 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-10-06 18:00:43 +0200 |
commit | 0b22b1d8a316e4cd324c3fa1cdbc24ab1294bf93 (patch) | |
tree | 1a23c4abb031ea29bf8736bca6d7a9663986b109 | |
parent | [runmode] Support returning associative array (diff) | |
download | slx-admin-0b22b1d8a316e4cd324c3fa1cdbc24ab1294bf93.tar.gz slx-admin-0b22b1d8a316e4cd324c3fa1cdbc24ab1294bf93.tar.xz slx-admin-0b22b1d8a316e4cd324c3fa1cdbc24ab1294bf93.zip |
Allow page modules with digits in name
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -70,7 +70,7 @@ abstract class Page public static function init() { $name = empty($_REQUEST['do']) ? 'Main' : $_REQUEST['do']; - $name = preg_replace('/[^A-Za-z_]/', '', $name); + $name = preg_replace('/[^A-Za-z0-9_]/', '', $name); $name = strtolower($name); Module::init(); self::$module = Module::get($name); |