Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Commit

Permalink
Config got reset, settings didn't get filled after re-creation
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuin committed Feb 17, 2012
1 parent 23ec686 commit 511ffca
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Config/Ini.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,17 @@ public static function getConfig()

// Allow application-wide access
Glitch_Registry::setConfig(self::$_config);
}

// Store the application settings, if any
$settings = self::$_config->get('settings');
if (null !== $settings)
{
Glitch_Registry::setSettings($settings);
// Store the application settings, if any
if (!Glitch_Registry::isRegistered(Glitch_Registry::KEY_SETTINGS)) {
$settings = self::$_config->get('settings');
if (null !== $settings)
{
Glitch_Registry::setSettings($settings);
}
}

return self::$_config;
}
}

0 comments on commit 511ffca

Please sign in to comment.