summaryrefslogtreecommitdiff
path: root/ajax_translate.php
diff options
context:
space:
mode:
Diffstat (limited to 'ajax_translate.php')
-rwxr-xr-xajax_translate.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/ajax_translate.php b/ajax_translate.php
index 06a8975..6e7e40f 100755
--- a/ajax_translate.php
+++ b/ajax_translate.php
@@ -39,8 +39,8 @@ if( !empty( $_REQUEST['lang'] ) && !empty( $_REQUEST['source_hash'] ) ) {
$preppedTranslation = preg_replace( '/<smarty /', '{', $translation );
// needs to be a full tag so we can cleanly de-tagify after translation
$preppedTranslation = preg_replace( '/><\/smarty>/', '}', $preppedTranslation );
-
- print json_encode( array( 'lang_code' => $_REQUEST['lang'], 'source_hash' => $_REQUEST['source_hash'], 'translation' => $preppedTranslation ) );
+
+ print json_encode( [ 'lang_code' => $_REQUEST['lang'], 'source_hash' => $_REQUEST['source_hash'], 'translation' => $preppedTranslation ] );
}
}
}