Skip to content

Commit

Permalink
changed $index to correct variable $lower in Phergie_Plugin_Handler
Browse files Browse the repository at this point in the history
dotEvan committed Mar 8, 2010
1 parent 7e33127 commit 3c9e723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Phergie/Plugin/Handler.php
Original file line number Diff line number Diff line change
@@ -231,7 +231,7 @@ public function removePlugin($plugin)
public function getPlugin($name)
{
// If the plugin is loaded, return the instance
$index = strtolower($name);
$lower = strtolower($name);
if (isset($this->plugins[$lower])) {
return $this->plugins[$lower];
}
@@ -251,7 +251,7 @@ public function getPlugin($name)
$this->addPlugin($name);

// Return the added plugin
return $this->plugins[$index];
return $this->plugins[$lower];
}

/**

0 comments on commit 3c9e723

Please sign in to comment.