small fix
This commit is contained in:
parent
e4a0ac2207
commit
2dfa41c786
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user