From fbe827e989173ecaeb18834dbade2a1144a91cfe Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Fri, 27 Dec 2024 11:30:55 +0900 Subject: [PATCH] Update Smarty Extended for Smarty-extended v5 upgrade --- www/admin/class_test.smarty.php | 1 + www/composer.json | 2 +- www/lib/CoreLibs/Template/SmartyExtend.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/www/admin/class_test.smarty.php b/www/admin/class_test.smarty.php index 718bf3d5..72996954 100644 --- a/www/admin/class_test.smarty.php +++ b/www/admin/class_test.smarty.php @@ -47,6 +47,7 @@ $adm = new CoreLibs\Admin\Backend( ); $adm->DATA['adm_set'] = 'SET from admin class'; + $PAGE_NAME = 'TEST CLASS: SMARTY'; print ""; print "" . $PAGE_NAME . ""; diff --git a/www/composer.json b/www/composer.json index 74c42f31..8fe948fd 100644 --- a/www/composer.json +++ b/www/composer.json @@ -21,7 +21,7 @@ } }, "require": { - "egrajp/smarty-extended": "^4.3", + "egrajp/smarty-extended": "^5.4", "php": ">=8.1", "gullevek/dotenv": "^2.0", "psr/log": "^2.0 || ^3.0" diff --git a/www/lib/CoreLibs/Template/SmartyExtend.php b/www/lib/CoreLibs/Template/SmartyExtend.php index e9b906d6..5b5bfd5d 100644 --- a/www/lib/CoreLibs/Template/SmartyExtend.php +++ b/www/lib/CoreLibs/Template/SmartyExtend.php @@ -20,7 +20,7 @@ declare(strict_types=1); namespace CoreLibs\Template; // leading slash if this is in lib\Smarty -class SmartyExtend extends \Smarty +class SmartyExtend extends \Smarty\Smarty { // internal translation engine /** @var \CoreLibs\Language\L10n */