From 060b73838d241fed91376c6242d9353c65787e90 Mon Sep 17 00:00:00 2001 From: "Km.Van" Date: Thu, 14 Aug 2025 12:49:52 +0800 Subject: [PATCH] adjust php version text --- src/Components/PhpInfo/components/php-version.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Components/PhpInfo/components/php-version.tsx b/src/Components/PhpInfo/components/php-version.tsx index 5e585b0..9728510 100644 --- a/src/Components/PhpInfo/components/php-version.tsx +++ b/src/Components/PhpInfo/components/php-version.tsx @@ -27,12 +27,15 @@ export const PhpInfoPhpVersion: FC = observer(() => { href="https://www.php.net/" title={gettext('Visit PHP.net Official website')} > - {phpVersion} {compare === -1 - ? ` ${template(gettext('{{latestPhpVersion}} (Latest)'), { - latestPhpVersion, - })}` - : ''} + ? ` ${template( + gettext('{{oldVersion}} (Latest: {{latestPhpVersion}})'), + { + oldVersion: phpVersion, + latestPhpVersion, + } + )}` + : phpVersion} ); });