We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 96df5916 authored by Evan Prodromou's avatar Evan Prodromou

change Action::init() to Action::prepare() to avoid conflict with RSS10Action::init()

darcs-hash:20081203173225-5ed1f-e5ebfb202ed4a84c90851d0faa025ad09774d2c3.gz
parent 54df7dcb
......@@ -27,7 +27,7 @@ class ShownoticeAction extends StreamAction {
var $profile = NULL;
var $avatar = NULL;
function init($args) {
function prepare($args) {
parent::init($args);
......
......@@ -52,7 +52,7 @@ if (file_exists($actionfile)) {
}
$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 {
......
......@@ -28,7 +28,7 @@ class Action { // lawsuit
# For initializing members of the class
function init($argarray) {
function prepare($argarray) {
$this->args =& common_copy_args($argarray);
return true;
}
......@@ -61,7 +61,7 @@ class Action { // lawsuit
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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment