Skip to content

Commit 3adb997

Browse files
committed
Allow passing 'is_installed' => false to Mage::init to disable loading local.xml
1 parent ca6127a commit 3adb997

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
@@ -785,8 +785,8 @@ public static function run($code = '', $type = 'store', $options = [])
785785
*/
786786
private static function _setIsInstalled($options = [])
787787
{
788-
if (isset($options['is_installed']) && $options['is_installed']) {
789-
self::$_isInstalled = true;
788+
if (isset($options['is_installed'])) {
789+
self::$_isInstalled = (bool) $options['is_installed'];
790790
}
791791
}
792792

0 commit comments

Comments
 (0)