}
$config['db']['database'] = $mirror;
}
- if (call_user_func(array($action_obj, 'init'), $_REQUEST)) {
+ if (call_user_func(array($action_obj, 'prepare'), $_REQUEST)) {
call_user_func(array($action_obj, 'handle'), $_REQUEST);
}
} else {
# For initializing members of the class
- function init($argarray) {
+ function prepare($argarray) {
$this->args =& common_copy_args($argarray);
return true;
}
return (is_string($arg)) ? trim($arg) : $arg;
}
- # Note: argarray ignored, since it's now passed in in init()
+ # Note: argarray ignored, since it's now passed in in prepare()
function handle($argarray=NULL) {