From 7575b48acd2bba068f580b31e349b371fb390616 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 27 Sep 2023 15:16:08 +0200 Subject: [PATCH] Add helper methods to LicenseData --- wcfsetup/install/files/acp/templates/license.tpl | 8 ++++---- .../install/files/lib/acp/page/LicensePage.class.php | 6 ------ .../lib/system/package/license/LicenseData.class.php | 10 ++++++++++ 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/license.tpl b/wcfsetup/install/files/acp/templates/license.tpl index a1f1306596..0f1b81b98a 100644 --- a/wcfsetup/install/files/acp/templates/license.tpl +++ b/wcfsetup/install/files/acp/templates/license.tpl @@ -34,8 +34,8 @@

{lang}wcf.acp.license{/lang}

- {if $licenseNumber} -

{lang}wcf.acp.license.licenseNo{/lang}

+ {if $licenseData->getLicenseNumber()} +

{lang licenseNumber=$licenseData->getLicenseNumber()}wcf.acp.license.licenseNo{/lang}

{/if}
@@ -59,7 +59,7 @@ {/hascontent}
-{if $licenseData->license[type] === 'developer'} +{if $licenseData->getLicenseType() === 'developer'}

{lang}wcf.acp.license.developerLicense{/lang}

{/if} @@ -104,7 +104,7 @@ {lang accessibleVersion=$requiresLicenseExtension[$package]}wcf.acp.license.package.outdated{/lang} {/if} - {lang}wcf.acp.license.extend{/lang} + {lang}wcf.acp.license.extend{/lang} {else}