summaryrefslogtreecommitdiff
path: root/ajax_translate.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:54:15 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:54:15 +0100
commit974ca7dd01b899652a5ddee850ab3ec2a483527e (patch)
tree55af98860bfd7db4d9885975ed77088369430677 /ajax_translate.php
parentf1e7aea6a7a18869a96052da37a642e93f89d01a (diff)
downloadlanguages-974ca7dd01b899652a5ddee850ab3ec2a483527e.tar.gz
languages-974ca7dd01b899652a5ddee850ab3ec2a483527e.tar.bz2
languages-974ca7dd01b899652a5ddee850ab3ec2a483527e.zip
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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 ] );
}
}
}