Поправил типы

This commit is contained in:
Фёдор Подлеснов 2018-02-09 12:02:35 +03:00
parent f3adc4550d
commit db7b5c7d25
3 changed files with 4 additions and 3 deletions

View file

@ -45,7 +45,8 @@ function phptal_time ($e)
* Функция подключения компонента
*/
function phptal_component ($expression) {
$begin = microtime(true);
$begin = floatval(microtime(true));
/*.Controller_Component.*/$component = null;
if(class_exists("Controller_Site")){ //Если мы в CMS2
$component = Controller_Site::loadComponent($expression);