Some whitespace edits in subedit, and tested that it works

This commit is contained in:
Evan Prodromou 2009-01-23 02:04:13 +01:00
parent 1132e66f84
commit 7bbbd433e8
1 changed files with 3 additions and 4 deletions

View File

@ -21,12 +21,10 @@ 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); parent::prepare($args);
if (!common_logged_in()) { if (!common_logged_in()) {
@ -37,8 +35,9 @@ class SubeditAction extends Action
$token = $this->trimmed('token'); $token = $this->trimmed('token');
if (!$token || $token != common_session_token()) { if (!$token || $token != common_session_token()) {
$this->clientError(_('There was a problem with your session token. Try again, please.')); $this->clientError(_('There was a problem with your session token. '.
return; 'Try again, please.'));
return false;
} }
$id = $this->trimmed('profile'); $id = $this->trimmed('profile');