diff --git a/zin/helper.php b/zin/helper.php index 5586711ef4..b6fb460ce2 100755 --- a/zin/helper.php +++ b/zin/helper.php @@ -49,10 +49,10 @@ function createWg($name, $args) $wgName = "\\zin\\$name"; - if(method_exists($wgName, 'create')) + if(function_exists($wgName)) { return call_user_func_array($wgName, $args); } - return class_exists($wgName) ? (new $wgName($args)) : $apiName($args); + return class_exists($wgName) ? (new $wgName($args)) : $wgName($args); }