summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-12-03 12:32:25 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-12-03 12:32:25 -0500
commit96df5916ad2cb29d81c6114d7345c4b3381e27c8 (patch)
tree685f9b2e0b78e530f30298418b70cde3dddb849e
parent54df7dcbbd0dd6be05551edef9fa2546c16b3536 (diff)
change Action::init() to Action::prepare() to avoid conflict with RSS10Action::init()
darcs-hash:20081203173225-5ed1f-e5ebfb202ed4a84c90851d0faa025ad09774d2c3.gz
-rw-r--r--actions/shownotice.php2
-rw-r--r--index.php2
-rw-r--r--lib/action.php4
3 files changed, 4 insertions, 4 deletions
diff --git a/actions/shownotice.php b/actions/shownotice.php
index ca1b13497..a8f5060d2 100644
--- a/actions/shownotice.php
+++ b/actions/shownotice.php
@@ -27,7 +27,7 @@ class ShownoticeAction extends StreamAction {
var $profile = NULL;
var $avatar = NULL;
- function init($args) {
+ function prepare($args) {
parent::init($args);
diff --git a/index.php b/index.php
index 5c16d2fd5..ae2e56f25 100644
--- a/index.php
+++ b/index.php
@@ -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 {
diff --git a/lib/action.php b/lib/action.php
index 16959c53a..7a2461bb5 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -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) {