}
/*
* module init is only loaded on main page call, and includes checks for configuration settings.
+ *
+ * // callModules('init', $base)
+ *
*/
- function initModules()
+ function initModules($base)
{
foreach(explode(',',$this->appModules) as $m) {
$cls = 'Pman_'. $m . '_Pman';
require_once str_replace('_','/', $cls). '.php';
$c = new $cls();
if (method_exists($c,'init')) {
- $c->init($this);
+ $c->init($this,$base);
}
}
}
{
$this->init();
if (empty($base)) {
- $this->initModules();
+ $this->initModules($base);
}
//$this->allowSignup= empty($opts['allowSignup']) ? 0 : 1;
}
+ //$this->callModules('outputCSSIncludes', false);
}