r86557 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86556‎ | r86557 | r86558 >
Date:22:24, 20 April 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Use of FormatJson::encode instead of josn_encode
Modified paths:
  • /trunk/extensions/IncludeWP/IncludeWP.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/IncludeWP/IncludeWP.class.php
@@ -198,7 +198,7 @@
199199
200200 $this->parser->getOutput()->addHeadItem(
201201 Html::inlineScript(
202 - 'var wgIncWPWikis =' . json_encode( $egIncWPWikis ) . ';'
 202+ 'var wgIncWPWikis =' . FormatJson::encode( $egIncWPWikis ) . ';'
203203 )
204204 );
205205 }
@@ -218,7 +218,7 @@
219219 $data[$msg] = wfMsgNoTrans( $msg );
220220 }
221221
222 - $this->parser->getOutput()->addHeadItem( Html::inlineScript( 'var wgIncWPMessages = ' . json_encode( $data ) . ';' ) );
 222+ $this->parser->getOutput()->addHeadItem( Html::inlineScript( 'var wgIncWPMessages = ' . FormatJson::encode( $data ) . ';' ) );
223223 }
224224
225225 /**

Status & tagging log