summaryrefslogtreecommitdiff
path: root/actions/block.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/block.php')
-rw-r--r--actions/block.php31
1 files changed, 18 insertions, 13 deletions
diff --git a/actions/block.php b/actions/block.php
index e6d2b7e49..c1ff7c044 100644
--- a/actions/block.php
+++ b/actions/block.php
@@ -19,11 +19,13 @@
if (!defined('LACONICA')) { exit(1); }
-class BlockAction extends Action {
+class BlockAction extends Action
+{
- var $profile = NULL;
+ var $profile = null;
- function prepare($args) {
+ function prepare($args)
+ {
parent::prepare($args);
@@ -32,12 +34,12 @@ class BlockAction 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('blockto');
@@ -56,7 +58,8 @@ class BlockAction extends Action {
return true;
}
- function handle($args) {
+ function handle($args)
+ {
parent::handle($args);
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($this->arg('block')) {
@@ -71,13 +74,14 @@ class BlockAction extends Action {
}
}
- function are_you_sure_form() {
+ function are_you_sure_form()
+ {
$id = $this->profile->id;
- common_show_header(_('Block user'));
+ common_show_header(_('Block user'));
- common_element('p', NULL,
+ common_element('p', null,
_('Are you sure you want to block this user? '.
'Afterwards, they will be unsubscribed from you, '.
'unable to subscribe to you in the future, and '.
@@ -109,7 +113,8 @@ class BlockAction extends Action {
common_show_footer();
}
- function block_profile() {
+ function block_profile()
+ {
$cur = common_current_user();