issue #2405 update smarty

and made Piwigo compatible with smarty 5.x
This commit is contained in:
Linty
2025-09-17 12:05:48 +02:00
parent 46837567cb
commit 1be0527523
378 changed files with 24680 additions and 28506 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace Smarty\BlockHandler;
use Smarty\Template;
class BlockPluginWrapper extends Base {
private $callback;
public function __construct($callback, bool $cacheable = true) {
$this->callback = $callback;
$this->cacheable = $cacheable;
}
public function handle($params, $content, Template $template, &$repeat) {
return \call_user_func_array($this->callback, [$params, $content, &$template, &$repeat]);
}
}