fix Исправлено определение имени модуля

This commit is contained in:
origami11@yandex.ru 2022-12-09 16:09:40 +03:00
parent 7fd7c4fd12
commit 9f3523de6b
2 changed files with 8 additions and 7 deletions

View file

@ -67,17 +67,15 @@ class Manager extends Filter
*/
public function execute(HttpRequest $request)
{
// print_r($request->get('mode'));
foreach ($this->condition as $condition) {
if (call_user_func($condition[0], $request)) {
$layout = $condition[1];
$view = $layout->execute($request);
if (is_object($view)) {
echo $view->render();
return $view->render();
} else {
echo $view;
return $view;
}
return null;
}
}
}