OSB enhancements to date
This commit is contained in:
@@ -52,7 +52,8 @@ class CORE_method {
|
||||
include_once($file);
|
||||
|
||||
if (class_exists($module) && method_exists($module,$method)) {
|
||||
eval (sprintf('$%s = new %s();$%s->%s($VAR,$%s);',$module,$module,$module,$method,$module));
|
||||
eval(sprintf('$%s = new %s(%s);$%s->%s($VAR,$%s);',
|
||||
$module,$module,isset($VAR['id']) ? $VAR['id'] : 'null',$module,$method,$module));
|
||||
|
||||
} else {
|
||||
$C_debug->alert($C_translate->translate('method_non_existant','core',''));
|
||||
@@ -76,6 +77,13 @@ class CORE_method {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute a method that supports output for a template
|
||||
*/
|
||||
public function exetm($module,$method) {
|
||||
return $this->exe($module,'tm'.$method);
|
||||
}
|
||||
|
||||
/**
|
||||
* Execute a modules method
|
||||
*/
|
||||
@@ -120,7 +128,8 @@ class CORE_method {
|
||||
include_once($file);
|
||||
|
||||
if (class_exists($module) && method_exists($module,$method)) {
|
||||
eval (sprintf('$%s = new %s();$%s->%s($VAR,$%s,$args);',$module,$module,$module,$method,$module));
|
||||
eval(sprintf('$%s = new %s(%s);$%s->%s($VAR,$%s,$args);',
|
||||
$module,$module,(isset($VAR['id']) ? $VAR['id'] : 'null'),$module,$method,$module));
|
||||
|
||||
global $smarty;
|
||||
|
||||
|
Reference in New Issue
Block a user