From 86587db9e9828b922d2215ccb7d4ba090e07ebc5 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 26 Sep 2023 04:21:25 +0300 Subject: [PATCH] remove deprecated construction --- src/app/controller/page.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/app/controller/page.php b/src/app/controller/page.php index fe945bb..6fc2746 100644 --- a/src/app/controller/page.php +++ b/src/app/controller/page.php @@ -46,19 +46,6 @@ class AppControllerPage private function _initUser(string $address) { - if (empty($address)) - { - $this->_response( - sprintf( - _('Error - %s'), - $this->_website->getName() - ), - _('500'), - _('Could not init session'), - 500 - ); - } - $error = []; if (!$this->_validator->host($address, $error)) { @@ -130,7 +117,6 @@ class AppControllerPage } } - public function get(int $pageId) { return $this->_database->getPage($pageId);