summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 12:37:49 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 12:37:49 -0400
commit24ee48e6d58db92a23e24e87b1b53f012e456cfa (patch)
tree9b168a1c6bf37b9753b722bde4a95ccba64b0e38
parent481dfb47a41002cdad11763235ae11fb56399a74 (diff)
try to fix arghandling in action
darcs-hash:20080517163749-84dde-a323b2b956a0912c5dc2cb93a83714dad64064a0.gz
-rw-r--r--actions/register.php2
-rw-r--r--lib/action.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/actions/register.php b/actions/register.php
index 5397078d8..80cc6aa7e 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -22,7 +22,7 @@ if (!defined('LACONICA')) { exit(1); }
class RegisterAction extends Action {
function handle($args) {
- parent::handle($this, $args);
+ parent::handle($args);
if (common_logged_in()) {
common_user_error(_t('Already logged in.'));
diff --git a/lib/action.php b/lib/action.php
index c882f0696..e604b1304 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -34,9 +34,9 @@ class Action { // lawsuit
}
}
- function handle($args) {
+ function handle($argarray) {
$this->args = array();
- foreach ($args as $k => $v) {
+ foreach ($argarray as $k => $v) {
$this->args[$k] = $v;
}
}