fine tuning
All checks were successful
Build and push / Pulling repo on server (push) Has been skipped

This commit is contained in:
2023-10-20 20:41:49 +02:00
parent 04af3a34bd
commit f85f354ee7
9 changed files with 308 additions and 113 deletions

View File

@ -70,9 +70,12 @@ function callHook($url)
$dispatch = new $componentName($component, $action, true, $queryString);
if (method_exists($componentName, $action)) {
call_user_func_array(array($dispatch, $action), $queryString);
$response = call_user_func_array(array($dispatch, $action), $queryString);
} else if (method_exists($componentName, 'catchAll'))
call_user_func_array(array($dispatch, 'catchAll'), array($params));
$response = call_user_func_array(array($dispatch, 'catchAll'), array($params));
return $dispatch->renderPagecontent();
if(is_string($response))
return $response;
else
return $dispatch->renderPagecontent();
}