Мелкие правки

This commit is contained in:
Origami11 2020-11-16 14:46:18 +03:00
parent 57773265b4
commit cdf7527c43
2 changed files with 4 additions and 2 deletions

View file

@ -56,6 +56,7 @@ class Controller_Front extends Controller_Action
$module = $this->loadClass($moduleFile, null, 'Module_');
if ($module) {
// Инициализация модуля
$module->front = $this;
$module->viewPath = Shortcut::getUrl('modulepath', $name);
$module->name = $name;

View file

@ -18,11 +18,12 @@ class HttpRequest extends Collection implements ArrayAccess
*/
public function __construct()
{
$list = array (
$list = [
'data' => $_REQUEST,
'get' => $_GET,
'post' => $_POST,
'cookie' => $_COOKIE);
'cookie' => $_COOKIE
];
$ajax = $this->isAjax();
foreach ($list as $key => $value) {