Skip to content

Commit

Permalink
Import Magento 1.4.0.0-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeSaferite committed Dec 31, 2009
1 parent 788d81f commit 473b844
Show file tree
Hide file tree
Showing 1,442 changed files with 29,860 additions and 25,214 deletions.
Binary file removed 404/skin/default/images/404.gif
Binary file not shown.
Binary file not shown.
Binary file removed 404/skin/default/images/logo.gif
Binary file not shown.
345 changes: 0 additions & 345 deletions 404/skin/default/index.phtml

This file was deleted.

14 changes: 6 additions & 8 deletions app/Mage.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static function getVersionInfo()
'minor' => '4',
'revision' => '0',
'patch' => '0',
'stability' => 'beta',
'stability' => 'rc',
'number' => '1',
);
}
Expand Down Expand Up @@ -599,7 +599,7 @@ public static function run($code = '', $type = 'store', $options=array())
header('Location: ' . self::getBaseUrl());
die();
} catch (Mage_Core_Model_Store_Exception $e) {
$baseUrl = rtrim(self::getScriptSystemUrl('404'), '/') . '/404/';
$baseUrl = rtrim(self::getScriptSystemUrl('errors'), '/') . '/errors/404.php';
if (!headers_sent()) {
header('Location: ' . $baseUrl);
} else {
Expand All @@ -616,7 +616,7 @@ public static function run($code = '', $type = 'store', $options=array())
try {
self::dispatchEvent('mage_run_exception', array('exception' => $e));
if (!headers_sent()) {
header('Location:'.self::getUrl('install'));
header('Location:' . self::getUrl('install'));
} else {
self::printException($e);
}
Expand Down Expand Up @@ -788,13 +788,11 @@ public static function printException(Exception $e, $extra = '')
$storeCode = 'default';
try {
$storeCode = self::app()->getStore()->getCode();
}
catch (Exception $e) {
} catch (Exception $e) {
}

$baseUrl = self::getScriptSystemUrl('report', true);
$reportUrl = rtrim($baseUrl, '/') . '/report/?id='
. $reportId . '&s=' . $storeCode;
$baseUrl = self::getScriptSystemUrl('errors', true);
$reportUrl = rtrim($baseUrl, '/') . '/errors/report.php?id=' . $reportId . '&s=' . $storeCode;

if (!headers_sent()) {
header('Location: ' . $reportUrl);
Expand Down
Loading

0 comments on commit 473b844

Please sign in to comment.