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
|
* 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 . '/';
|
$pluginsDirectory = ManiaControlDir . '/plugins/' . $dir . '/';
|
||||||
$pluginFiles = scandir($pluginsDirectory, 0);
|
$pluginFiles = scandir($pluginsDirectory, 0);
|
||||||
foreach($pluginFiles as $pluginFile) {
|
foreach($pluginFiles as $pluginFile) {
|
||||||
@ -194,6 +194,7 @@ class PluginManager {
|
|||||||
|
|
||||||
if (is_dir($pluginsDirectory . $pluginFile)) {
|
if (is_dir($pluginsDirectory . $pluginFile)) {
|
||||||
$this->loadPlugins($pluginFile);
|
$this->loadPlugins($pluginFile);
|
||||||
|
var_dump("test");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user