Merge remote-tracking branch 'origin/dev'

This commit is contained in:
Фёдор Подлеснов 2018-01-15 16:47:43 +03:00
commit 7187963ac9
8 changed files with 66 additions and 15 deletions

View file

@ -49,10 +49,14 @@ class View_Page extends View_View
{
//$result = phptal_component($match, $offset);
//*
global $db, $registry; // Нужно как-то передавать параметры
$component = Controller_Component::loadComponent($match, $db, $registry);
if(class_exists("Controller_Site")){ //Если мы в CMS2
$component = Controller_Site::loadComponent($match);
}else{
global $db, $registry; //
$component = Controller_Component::loadComponent($match, $db, $registry);
}
$req = new HttpRequest();
unset($req['active_page']);