// remove useless content on 404.php deprecated file

This commit is contained in:
Rémi Gaillard
2013-03-11 11:51:32 +01:00
parent 79e13721ea
commit d424a99d7e

14
404.php
View File

@@ -24,18 +24,6 @@
* International Registered Trademark & Property of PrestaShop SA * 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'); require_once(dirname(__FILE__).'/config/config.inc.php');
Tools::displayFileAsDeprecated();
Controller::getController('PageNotFoundController')->run(); Controller::getController('PageNotFoundController')->run();