From 7e31183abe5936c12742dda436d07e55e8d5bc74 Mon Sep 17 00:00:00 2001 From: sunhao Date: Fri, 19 Apr 2024 11:15:48 +0800 Subject: [PATCH] * zin: refactor. --- lib/zin/core/loader.func.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/zin/core/loader.func.php b/lib/zin/core/loader.func.php index 18f0e6191e..c1dc25e9dd 100644 --- a/lib/zin/core/loader.func.php +++ b/lib/zin/core/loader.func.php @@ -42,13 +42,13 @@ function createWg($name, $args, ?string $fallbackWgName = null): node $wgVer = getWgVer($name); $wgName = "\\zin\\$name"; - if(in_array($name, h::$h5Tags)) - { - return h::$name($args); - } - if(!class_exists($wgName)) { + if(in_array($name, h::$h5Tags)) + { + return h::$name($args); + } + include_once dirname(__DIR__) . DS . 'wg' . DS . $name . DS . "v$wgVer.php"; }