todo
This commit is contained in:
parent
2dfa41c786
commit
fb309423ef
@ -184,7 +184,8 @@ class PluginManager {
|
|||||||
/**
|
/**
|
||||||
* Load complete plugins directory and start all configured plugins
|
* Load complete plugins directory and start all configured plugins
|
||||||
*/
|
*/
|
||||||
public function loadPlugins($dir = '') { //TODO first include all files, than handle plugin activation
|
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,7 +195,6 @@ 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