Перенес функции в класс
This commit is contained in:
parent
5e1362d103
commit
5e6d39d638
8 changed files with 488 additions and 491 deletions
|
|
@ -1,8 +1,5 @@
|
|||
<?php
|
||||
|
||||
require_once __DIR__ . '/../functions.php';
|
||||
|
||||
|
||||
function forceUrl($name)
|
||||
{
|
||||
if (is_callable($name)) {
|
||||
|
|
@ -213,7 +210,7 @@ class Controller_Action
|
|||
/*.Filter_ActionAccess.*/$access = $this->access;
|
||||
|
||||
if ($access == null || $access->checkAction($name)) {
|
||||
return lcurry(array($this, 'postUrl'), $name, $param);
|
||||
return Functions::lcurry(array($this, 'postUrl'), $name, $param);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue