summaryrefslogtreecommitdiff
path: root/actions/unblock.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/unblock.php')
-rw-r--r--actions/unblock.php24
1 files changed, 14 insertions, 10 deletions
diff --git a/actions/unblock.php b/actions/unblock.php
index d60cc7088..112304f71 100644
--- a/actions/unblock.php
+++ b/actions/unblock.php
@@ -19,11 +19,13 @@
if (!defined('LACONICA')) { exit(1); }
-class UnblockAction extends Action {
+class UnblockAction extends Action
+{
- var $profile = NULL;
+ var $profile = null;
- function prepare($args) {
+ function prepare($args)
+ {
parent::prepare($args);
@@ -32,12 +34,12 @@ class UnblockAction extends Action {
return false;
}
- $token = $this->trimmed('token');
+ $token = $this->trimmed('token');
- if (!$token || $token != common_session_token()) {
- $this->client_error(_('There was a problem with your session token. Try again, please.'));
- return;
- }
+ if (!$token || $token != common_session_token()) {
+ $this->client_error(_('There was a problem with your session token. Try again, please.'));
+ return;
+ }
$id = $this->trimmed('unblockto');
@@ -56,14 +58,16 @@ class UnblockAction extends Action {
return true;
}
- function handle($args) {
+ function handle($args)
+ {
parent::handle($args);
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->unblock_profile();
}
}
- function unblock_profile() {
+ function unblock_profile()
+ {
$cur = common_current_user();