Merge pull request #1012 from ralpheav/master

adding Bootstrap::json_encode to translations
This commit is contained in:
julceslauhub
2012-11-29 08:32:56 -08:00

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;