* zin: fix createWg with function wg not work
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user