Skip to content

Commit 2c8c9fe

Browse files
committed
Allow passing 'is_installed' => false to Mage::init to disable loading local.xml
1 parent 84ad6a8 commit 2c8c9fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Mage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,8 @@ public static function run($code = '', $type = 'store', $options = [])
784784
*/
785785
private static function _setIsInstalled($options = [])
786786
{
787-
if (isset($options['is_installed']) && $options['is_installed']) {
788-
self::$_isInstalled = true;
787+
if (isset($options['is_installed'])) {
788+
self::$_isInstalled = (bool) $options['is_installed'];
789789
}
790790
}
791791

0 commit comments

Comments
 (0)