Merge pull request #1012 from ralpheav/master
adding Bootstrap::json_encode to translations
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user