From d424a99d7e376e08af6c96225462c63e0af18e5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Mon, 11 Mar 2013 11:51:32 +0100 Subject: [PATCH] // remove useless content on 404.php deprecated file --- 404.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/404.php b/404.php index d90d7df7a..9fd4270f4 100644 --- a/404.php +++ b/404.php @@ -24,18 +24,6 @@ * International Registered Trademark & Property of PrestaShop SA */ -/* Send the proper status code in HTTP headers */ -header('HTTP/1.1 404 Not Found'); -header('Status: 404 Not Found'); - -if (in_array(substr($_SERVER['REQUEST_URI'], -3), array('png', 'jpg', 'gif'))) -{ - require_once(dirname(__FILE__).'/config/settings.inc.php'); - header('Location: '.__PS_BASE_URI__.'img/404.gif'); - exit; -} -elseif (in_array(substr($_SERVER['REQUEST_URI'], -3), array('.js', 'css'))) - die(''); - require_once(dirname(__FILE__).'/config/config.inc.php'); +Tools::displayFileAsDeprecated(); Controller::getController('PageNotFoundController')->run();