From: Cyperghost Date: Fri, 26 Jan 2024 15:22:14 +0000 (+0100) Subject: Remove `SharedIncludeFunctionTemplatePlugin` X-Git-Tag: 6.1.0_Alpha_1~185^2~36 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ce02916ec65bd13cf02958885348f9a22569306a;p=GitHub%2FWoltLab%2FWCF.git Remove `SharedIncludeFunctionTemplatePlugin` --- diff --git a/wcfsetup/install/files/lib/system/template/plugin/SharedIncludeFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/SharedIncludeFunctionTemplatePlugin.class.php deleted file mode 100644 index 90b3485b06..0000000000 --- a/wcfsetup/install/files/lib/system/template/plugin/SharedIncludeFunctionTemplatePlugin.class.php +++ /dev/null @@ -1,33 +0,0 @@ - - * @since 6.1 - */ -final class SharedIncludeFunctionTemplatePlugin implements IFunctionTemplatePlugin -{ - #[\Override] - public function execute($tagArgs, TemplateEngine $tplObj) - { - if (!isset($tagArgs['file'])) { - throw new \InvalidArgumentException("missing 'file' argument in sharedInclude tag"); - } - $file = 'shared_' . $tagArgs['file']; - $application = $tagArgs['application'] ?? 'wcf'; - $sandbox = $tagArgs['sandbox'] ?? false; - - unset($tagArgs['file'], $tagArgs['application'], $tagArgs['sandbox']); - - return WCF::getTPL()->fetch($file, $application, $tagArgs, $sandbox); - } -}