From: Michael Dale Date: Wed, 29 Jul 2009 00:12:57 +0000 (+0000) Subject: updated json_encode call to api version X-Git-Tag: 1.31.0-rc.0~40656 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=e3243c5e86ab9464759b24d91e47977655dfa1e5;p=lhc%2Fweb%2Fwiklou.git updated json_encode call to api version --- diff --git a/js2/mwEmbed/jsScriptLoader.php b/js2/mwEmbed/jsScriptLoader.php index e73612f396..1fc8da4048 100644 --- a/js2/mwEmbed/jsScriptLoader.php +++ b/js2/mwEmbed/jsScriptLoader.php @@ -273,7 +273,7 @@ class jsScriptLoader { $jmsg[$msgKey] = wfMsgNoTrans( $msgKey ); } //return the updated loadGM json with fixed new lines: - return 'loadGM( ' . json_encode( $jmsg ) . ')'; + return 'loadGM( ' . ApiFormatJson::getJsonEncode( $jmsg ) . ')'; } else { $this->error_msg.= "Could not parse JSON language msg in File:\n" . $this->cur_file . "\n";