// remove useless content on 404.php deprecated file
This commit is contained in:
14
404.php
14
404.php
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user