diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:54:15 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:54:15 +0100 |
| commit | 974ca7dd01b899652a5ddee850ab3ec2a483527e (patch) | |
| tree | 55af98860bfd7db4d9885975ed77088369430677 /ajax_translate.php | |
| parent | f1e7aea6a7a18869a96052da37a642e93f89d01a (diff) | |
| download | languages-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-x | ajax_translate.php | 4 |
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 ] ); } } } |
