mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
Make clearer the condition of regular expression of user_lang than before...
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10622 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
27887492d4
commit
b4bac3ffac
1 changed files with 1 additions and 1 deletions
|
|
@ -696,7 +696,7 @@
|
||||||
* @brief Change user-defined language
|
* @brief Change user-defined language
|
||||||
**/
|
**/
|
||||||
function replaceDefinedLangCode(&$output) {
|
function replaceDefinedLangCode(&$output) {
|
||||||
$output = preg_replace_callback('!\$user_lang->([a-z0-9\_]+)!is', array($this,'_replaceLangCode'), $output);
|
$output = preg_replace_callback('!\$user\_lang\-\>([A-Za-z0-9\_]+)!s', array($this,'_replaceLangCode'), $output);
|
||||||
}
|
}
|
||||||
function _replaceLangCode($matches) {
|
function _replaceLangCode($matches) {
|
||||||
static $lang = null;
|
static $lang = null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue