fix
This commit is contained in:
parent
a83f70422c
commit
3a02221172
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ function phptal_component ($expression) {
|
|||
$begin = microtime(true);
|
||||
|
||||
if(class_exists("Controller_Site")){ //Если мы в CMS2
|
||||
$component = Controller_Site::loadComponent($match);
|
||||
$component = Controller_Site::loadComponent($expression);
|
||||
}else{
|
||||
global $db, $registry; // Иначе обращаемся к глобальным переменным
|
||||
$component = Controller_Component::loadComponent($expression, $db, $registry);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue