Permalink
Browse files

// remove useless content on 404.php deprecated file

  • Loading branch information...
1 parent 79e1372 commit d424a99d7e376e08af6c96225462c63e0af18e5b @rGaillard rGaillard committed Mar 11, 2013
Showing with 1 addition and 13 deletions.
  1. +1 −13 404.php
View
14 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();

0 comments on commit d424a99

Please sign in to comment.