Merge remote-tracking branch 'origin/dev'
This commit is contained in:
commit
7187963ac9
8 changed files with 66 additions and 15 deletions
|
|
@ -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']);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue