This commit is contained in:
Anatoly 2017-05-18 12:33:21 +03:00
parent a83f70422c
commit 3a02221172

View file

@ -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);