Поправил типы
This commit is contained in:
parent
f3adc4550d
commit
db7b5c7d25
3 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue