Don't use json_encode directly
Also pass "true" to "isHtml", which reflects to prettify Change-Id: Ifdefe4dc2bcccb06f4b13774b60c16a6c7066b1a
This commit is contained in:
@@ -29,8 +29,8 @@ include __DIR__ . '/spyc.php';
|
||||
|
||||
$data = file_get_contents( 'langdb.yaml' );
|
||||
$parsed = spyc_load( $data );
|
||||
$json = json_encode( $parsed );
|
||||
$languageNames = FormatJSON::encode( Language::fetchLanguageNames() );
|
||||
$json = FormatJSON::encode( $parsed, true );
|
||||
$languageNames = FormatJSON::encode( Language::fetchLanguageNames(), true );
|
||||
$js = <<<JAVASCRIPT
|
||||
( function ( $ ) {
|
||||
$.uls = {};
|
||||
|
||||
Reference in New Issue
Block a user