From 13ed0c6edb6fcf2879b007dc2643cf7677f43802 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 17 Sep 2018 09:40:52 +0800 Subject: [PATCH] Pman.php --- Pman.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Pman.php b/Pman.php index a232c33..e760e62 100644 --- a/Pman.php +++ b/Pman.php @@ -138,9 +138,11 @@ class Pman extends HTML_FlexyFramework_Page * */ - function callModules($fn, $base) + function callModules($fn) { - foreach(explode(',',$this->appModules) as $m) { + $ar = func_get_args(); + array_shift($ar); + foreach(explode(',',$this->appModules) as $m) { $cls = 'Pman_'. $m . '_Pman'; if (!file_exists($this->rootDir . '/'.str_replace('_','/', $cls). '.php')) { continue; @@ -158,7 +160,6 @@ class Pman extends HTML_FlexyFramework_Page $this->init(); if (empty($base)) { $this->callModules('init', $base); - // $this->initModules($base); } //$this->allowSignup= empty($opts['allowSignup']) ? 0 : 1; -- 2.39.2