Index: trunk/extensions/IncludeWP/IncludeWP.class.php |
— | — | @@ -198,7 +198,7 @@ |
199 | 199 | |
200 | 200 | $this->parser->getOutput()->addHeadItem( |
201 | 201 | Html::inlineScript( |
202 | | - 'var wgIncWPWikis =' . json_encode( $egIncWPWikis ) . ';' |
| 202 | + 'var wgIncWPWikis =' . FormatJson::encode( $egIncWPWikis ) . ';' |
203 | 203 | ) |
204 | 204 | ); |
205 | 205 | } |
— | — | @@ -218,7 +218,7 @@ |
219 | 219 | $data[$msg] = wfMsgNoTrans( $msg ); |
220 | 220 | } |
221 | 221 | |
222 | | - $this->parser->getOutput()->addHeadItem( Html::inlineScript( 'var wgIncWPMessages = ' . json_encode( $data ) . ';' ) ); |
| 222 | + $this->parser->getOutput()->addHeadItem( Html::inlineScript( 'var wgIncWPMessages = ' . FormatJson::encode( $data ) . ';' ) ); |
223 | 223 | } |
224 | 224 | |
225 | 225 | /** |