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

View File

@ -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;
} }