1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13832] Resolve minor coding issues

PHPBB3-13832
This commit is contained in:
Marc Alexander
2015-05-20 08:59:19 +02:00
parent 358c634153
commit 91cace06a5
2 changed files with 3 additions and 17 deletions

View File

@@ -509,7 +509,7 @@ function message_options($id, $mode, $global_privmsgs_rules, $global_rule_condit
// Build all three language arrays
preg_replace_callback('#^((RULE|ACTION|CHECK)_([A-Z0-9_]+))$#', function ($match) use(&$rule_lang, &$action_lang, &$check_lang, $user) {
${strtolower($match[2]) . '_lang'}[constant($match[1])] = $user->lang['PM_' . $match[2]][$match[3]];
} , array_keys(get_defined_constants()));
}, array_keys(get_defined_constants()));
/*
Rule Ordering: