diff --git a/src/Controller/Component.php b/src/Controller/Component.php index c70c718..4a75ed4 100644 --- a/src/Controller/Component.php +++ b/src/Controller/Component.php @@ -189,7 +189,7 @@ class Controller_Component $view->component_title = $settings['title']; } - static function loadComponent($expression, Database $db, /*.Settings.*/ $registry) + static function loadComponent($expression, Database $db, /*.Registry.*/ $registry) { $expression = htmlspecialchars_decode($expression); diff --git a/src/Functions.php b/src/Functions.php index 785e893..3f888e7 100644 --- a/src/Functions.php +++ b/src/Functions.php @@ -358,7 +358,7 @@ class Functions { * @param $key Имя ключа по значению которого будет идти сравнение * @return Отсортированный массив */ - static function sortOn($array, $key, $fn = '__cmp') { + static function sortOn($array, $key, $fn = 'Functions::__cmp') { usort ($array, Functions::rcurry($fn, $key)); //usort ($array, create_function ('$x,$y', 'return __cmp ($x, $y, "'.$key.'");')); return $array; diff --git a/src/tales.php b/src/tales.php index ac34ef8..0d727e8 100644 --- a/src/tales.php +++ b/src/tales.php @@ -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);