Skip to content

Commit

Permalink
Fixed handles configuration is missing. Closes #47.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Jun 20, 2013
1 parent 4936686 commit fed0817
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controllers/ExtensionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@ public function getConfigure($name)

// Load configuration from memory.
$memory = App::memory();
$config = $memory->get("extensions.active.{$name}.config", array());
$eloquent = new Fluent((array) $memory->get("extension_{$name}", $config));
$activeConfig = (array) $memory->get("extensions.active.{$name}.config", array());
$baseConfig = (array) $memory->get("extension_{$name}", array());
$eloquent = new Fluent(array_merge($activeConfig, $baseConfig));
$extensionName = $memory->get("extensions.available.{$name}.name", $name);

// Add basic form, allow extension to add custom configuration field
Expand Down

0 comments on commit fed0817

Please sign in to comment.