Adding new Bootstrap::json_encode()

This commit is contained in:
ralph
2012-11-29 11:21:52 -04:00
parent f5f13d83a9
commit 5c89c9d499

View File

@@ -175,10 +175,9 @@ class Translation extends BaseTranslation
fwrite( $f, "?>" );
fclose( $f );
$json = new Services_JSON();
//$json = new Services_JSON(); DEPRECATED
$f = fopen( $cacheFileJS, 'w' );
fwrite( $f, "var G_STRINGS =" . $json->encode( $translationJS ) . ";\n" );
fwrite( $f, "var G_STRINGS =" . Bootstrap::json_encode( $translationJS ) . ";\n" );
fclose( $f );
$res['cacheFile'] = $cacheFile;