small fix

This commit is contained in:
kremsy 2014-02-14 18:29:49 +01:00 committed by Steffen Schröder
parent e4a0ac2207
commit 2dfa41c786

View File

@ -184,7 +184,7 @@ class PluginManager {
/**
* Load complete plugins directory and start all configured plugins
*/
public function loadPlugins($dir = '') {
public function loadPlugins($dir = '') { //TODO first include all files, than handle plugin activation
$pluginsDirectory = ManiaControlDir . '/plugins/' . $dir . '/';
$pluginFiles = scandir($pluginsDirectory, 0);
foreach($pluginFiles as $pluginFile) {
@ -194,6 +194,7 @@ class PluginManager {
if (is_dir($pluginsDirectory . $pluginFile)) {
$this->loadPlugins($pluginFile);
var_dump("test");
continue;
}
@ -208,7 +209,7 @@ class PluginManager {
if (!$this->isPluginClass($className)) {
continue;
}
//Prepare Plugin
$className::prepare($this->maniaControl);