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

Commit

Permalink
Fix plugin get.
Browse files Browse the repository at this point in the history
  • Loading branch information
dersam committed Dec 1, 2015
1 parent 715276a commit 1f63a3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/LinusShops/Prophet/PluginRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public static function load()
$plugin = require($path);
$plugin->load();
$plugin->register();
self::$plugins[$name] = $plugin;
self::$plugins[strtolower($name)] = $plugin;
}
}
}
}

public function get($name) {
return self::$plugins[$name];
public static function get($name) {
return self::$plugins[strtolower($name)];
}
}

0 comments on commit 1f63a3d

Please sign in to comment.