summaryrefslogtreecommitdiff
path: root/actions/subedit.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/subedit.php')
-rw-r--r--actions/subedit.php21
1 files changed, 12 insertions, 9 deletions
diff --git a/actions/subedit.php b/actions/subedit.php
index e7505e3fe..1142b7a03 100644
--- a/actions/subedit.php
+++ b/actions/subedit.php
@@ -19,11 +19,13 @@
if (!defined('LACONICA')) { exit(1); }
-class SubeditAction extends Action {
+class SubeditAction extends Action
+{
- var $profile = NULL;
+ var $profile = null;
- function prepare($args) {
+ function prepare($args)
+ {
parent::prepare($args);
@@ -32,12 +34,12 @@ class SubeditAction 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('profile');
@@ -56,7 +58,8 @@ class SubeditAction extends Action {
return true;
}
- function handle($args) {
+ function handle($args)
+ {
parent::handle($args);
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$cur = common_current_user();