Skip to content

Commit

Permalink
Update index.php (#1523)
Browse files Browse the repository at this point in the history
Downloader was removed with #952 so it's useless to redirect to the downloader subdir. Also, I think the purpose of checkin if the MAGENTO_ROOT . '/app/Mage.php' is useless, one file check for every request while magento wouldn't work at all if it didn't exist, I think that check has to be removed, there's no point in executing it.
  • Loading branch information
fballiano authored May 28, 2021
1 parent 4567901 commit 87c03d7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,6 @@
$mageFilename = MAGENTO_ROOT . '/app/Mage.php';
$maintenanceFile = 'maintenance.flag';

if (!file_exists($mageFilename)) {
if (is_dir('downloader')) {
header("Location: downloader");
} else {
echo $mageFilename." was not found";
}
exit;
}

if (file_exists($maintenanceFile)) {
include_once dirname(__FILE__) . '/errors/503.php';
exit;
Expand Down

0 comments on commit 87c03d7

Please sign in to comment.