Skip to content

Commit

Permalink
changes include to include_once when loading files in Phergie_Plugin_…
Browse files Browse the repository at this point in the history
…Handler. Phergie was throwing fatal class-already-delcared style errors when testing with multiple instances of the Handler.
  • Loading branch information
dotEvan committed Mar 17, 2010
1 parent d89ed74 commit a71cc15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Phergie/Plugin/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function addPlugin($plugin, array $args = null)
foreach (array_reverse($this->paths) as $path) {
$file = $path['path'] . $plugin . '.php';
if (file_exists($file)) {
include $file;
include_once $file;
$class = $path['prefix'] . $plugin;
if (class_exists($class)) {
break;
Expand Down

0 comments on commit a71cc15

Please sign in to comment.