try to fix arghandling in action

darcs-hash:20080517163749-84dde-a323b2b956a0912c5dc2cb93a83714dad64064a0.gz
This commit is contained in:
Evan Prodromou 2008-05-17 12:37:49 -04:00
parent 481dfb47a4
commit 24ee48e6d5
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ if (!defined('LACONICA')) { exit(1); }
class RegisterAction extends Action { class RegisterAction extends Action {
function handle($args) { function handle($args) {
parent::handle($this, $args); parent::handle($args);
if (common_logged_in()) { if (common_logged_in()) {
common_user_error(_t('Already logged in.')); common_user_error(_t('Already logged in.'));

View File

@ -34,9 +34,9 @@ class Action { // lawsuit
} }
} }
function handle($args) { function handle($argarray) {
$this->args = array(); $this->args = array();
foreach ($args as $k => $v) { foreach ($argarray as $k => $v) {
$this->args[$k] = $v; $this->args[$k] = $v;
} }
} }