mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-16 10:44:55 +02:00
Add redirect_from && redirect_to to router options
+ Also add * for all methods shortcut
This commit is contained in:
@@ -1531,6 +1531,12 @@ function camelCaseToUnderscore($input)
|
||||
return ltrim(strtolower(preg_replace('/[A-Z]([A-Z](?![a-z]))*/', '_$0', $input)), '_');
|
||||
}
|
||||
|
||||
function removeIfFirstSlash(&$text) {
|
||||
if(strpos($text, '/') === 0) {
|
||||
$text = str_replace_first('/', '', $text);
|
||||
}
|
||||
};
|
||||
|
||||
// validator functions
|
||||
require_once LIBS . 'validator.php';
|
||||
require_once SYSTEM . 'compat/base.php';
|
||||
|
Reference in New Issue
Block a user