From a0b2d09125d7911656fe4cb286f20643c4432281 Mon Sep 17 00:00:00 2001 From: Marek Laane Date: Sun, 12 Oct 2014 10:54:11 +0300 Subject: Updated Estonian translation --- apps/error/error_app.php | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 apps/error/error_app.php (limited to 'apps/error/error_app.php') diff --git a/apps/error/error_app.php b/apps/error/error_app.php deleted file mode 100644 index dc1d64cb2..000000000 --- a/apps/error/error_app.php +++ /dev/null @@ -1,47 +0,0 @@ - - * @license http://www.gnu.org/licenses/gpl-2.0.html GPL-2+ - * @link http://www.mageia.org/ - * -*/ - -class Error extends Pinq_App -{ - public function __construct($controller, $options) - { - $this->_control = $controller; - $this->_options = $options; - } - - public function run() - { - if ($this->_options['code'] == 404) { - return $this->_error_404(); - } - } - - private function _error_404() - { - define('HLANG', true); - require 'langs.php'; // needs absolute path in some form to be link depth independent - _lang_load($locale, '404'); - - ob_start(); - include 'templates/404.tpl'; - - return array( - 'headers' => array( - 'Mageia-Test: 1', - 'HTTP/1.0 404 Not Found', - 'Status: 404 Not Found' - ), - 'body' => ob_get_clean() - ); - } -} \ No newline at end of file -- cgit v1.2.1