Skip to content

Commit c57eb3a

Browse files
authored
Remove _isDownloader flag (#1448)
1 parent 07cf0a2 commit c57eb3a

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

app/Mage.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,6 @@ final class Mage
108108
*/
109109
static private $_objects;
110110

111-
/**
112-
* Is downloader flag
113-
*
114-
* @var bool
115-
*/
116-
static private $_isDownloader = false;
117-
118111
/**
119112
* Is developer mode flag
120113
*
@@ -267,7 +260,6 @@ public static function reset()
267260
self::$_config = null;
268261
self::$_events = null;
269262
self::$_objects = null;
270-
self::$_isDownloader = false;
271263
self::$_isDeveloperMode = false;
272264
self::$_isInstalled = null;
273265
// do not reset $headersSentThrowsException
@@ -759,7 +751,7 @@ public static function run($code = '', $type = 'store', $options = array())
759751
require_once(self::getBaseDir() . DS . 'errors' . DS . '404.php');
760752
die();
761753
} catch (Exception $e) {
762-
if (self::isInstalled() || self::$_isDownloader) {
754+
if (self::isInstalled()) {
763755
self::printException($e);
764756
exit();
765757
}
@@ -1061,10 +1053,10 @@ public static function getScriptSystemUrl($folder, $exitIfNot = false)
10611053
/**
10621054
* Set is downloader flag
10631055
*
1064-
* @param bool $flag
1056+
* @deprecated
10651057
*/
1066-
public static function setIsDownloader($flag = true)
1058+
public static function setIsDownloader()
10671059
{
1068-
self::$_isDownloader = $flag;
1060+
10691061
}
10701062
}

0 commit comments

Comments
 (0)