summaryrefslogtreecommitdiff
path: root/actions/block.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-16 14:40:04 +0100
committerEvan Prodromou <evan@status.net>2009-11-16 14:40:04 +0100
commitff88ef407a344749c02d9d1d0dc104b4b720d7ae (patch)
treeb1216e02465d4a971e2d787e24e0c3dc6a0b0fbb /actions/block.php
parent64677fc09a54546274a001ce9bec0fa4bc8132f7 (diff)
make block actions use profileformaction superclass
Diffstat (limited to 'actions/block.php')
-rw-r--r--actions/block.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/actions/block.php b/actions/block.php
index b125d2d8b..2443b3010 100644
--- a/actions/block.php
+++ b/actions/block.php
@@ -64,7 +64,7 @@ class BlockAction extends Action
$this->clientError(_('There was a problem with your session token. Try again, please.'));
return;
}
- $id = $this->trimmed('blockto');
+ $id = $this->trimmed('profileid');
if (!$id) {
$this->clientError(_('No profile specified.'));
return false;
@@ -97,7 +97,7 @@ class BlockAction extends Action
303);
} elseif ($this->arg('yes')) {
$this->blockProfile();
- } elseif ($this->arg('blockto')) {
+ } else {
$this->showPage();
}
}
@@ -138,7 +138,7 @@ class BlockAction extends Action
'unable to subscribe to you in the future, and '.
'you will not be notified of any @-replies from them.'));
$this->element('input', array('id' => 'blockto-' . $id,
- 'name' => 'blockto',
+ 'name' => 'profileid',
'type' => 'hidden',
'value' => $id));
foreach ($this->args as $k => $v) {