mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
reverse merge from 1.6.0 (r10668, r10667, r10600, r10596, r10595, r10594, r10578, r10572)
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10717 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a4b3a914a5
commit
f7330acf02
13 changed files with 137 additions and 144 deletions
|
|
@ -695,8 +695,11 @@
|
|||
/**
|
||||
* @brief Change user-defined language
|
||||
**/
|
||||
function replaceDefinedLangCode(&$output) {
|
||||
$output = preg_replace_callback('!\$user\_lang\-\>([A-Za-z0-9\_]+)!s', array($this,'_replaceLangCode'), $output);
|
||||
function replaceDefinedLangCode(&$output, $isReplaceLangCode = true) {
|
||||
if($isReplaceLangCode)
|
||||
{
|
||||
$output = preg_replace_callback('!\$user_lang->([a-z0-9\_]+)!is', array($this,'_replaceLangCode'), $output);
|
||||
}
|
||||
}
|
||||
function _replaceLangCode($matches) {
|
||||
static $lang = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue