Merge branch 'strict-warnings' into 'nightly'

Fix some strict warnings (Action::prepare, Action::handle)

I know MR with changes to a bunch of files aren't great practice, but I figured since all the changes are one-liners it might not be a huge deal.

Related to #190 

See merge request !123
This commit is contained in:
mmn 2016-06-17 16:29:47 -04:00
commit 005b4c8dd1
119 changed files with 272 additions and 272 deletions

View File

@ -65,7 +65,7 @@ class AddpeopletagAction extends Action
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -119,7 +119,7 @@ class AddpeopletagAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
// Throws exception on error // Throws exception on error
$ptag = Profile_tag::setTag($this->user->id, $this->tagged->id, $ptag = Profile_tag::setTag($this->user->id, $this->tagged->id,

View File

@ -54,7 +54,7 @@ class ApiAccountUpdateDeliveryDeviceAction extends ApiAuthAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -73,9 +73,9 @@ class ApiAccountUpdateDeliveryDeviceAction extends ApiAuthAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (!in_array($this->format, array('xml', 'json'))) { if (!in_array($this->format, array('xml', 'json'))) {
$this->clientError( $this->clientError(

View File

@ -51,7 +51,7 @@ class ApiAtomServiceAction extends ApiBareAuthAction
* @return boolean success flag * @return boolean success flag
* *
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->user = $this->getTargetUser($this->arg('id')); $this->user = $this->getTargetUser($this->arg('id'));
@ -71,9 +71,9 @@ class ApiAtomServiceAction extends ApiBareAuthAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
header('Content-Type: application/atomsvc+xml'); header('Content-Type: application/atomsvc+xml');

View File

@ -58,7 +58,7 @@ class ApiGroupListAllAction extends ApiPrivateAuthAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -77,9 +77,9 @@ class ApiGroupListAllAction extends ApiPrivateAuthAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$sitename = common_config('site', 'name'); $sitename = common_config('site', 'name');
// TRANS: Message is used as a title when listing the lastest 20 groups. %s is a site name. // TRANS: Message is used as a title when listing the lastest 20 groups. %s is a site name.

View File

@ -33,7 +33,7 @@ class ApiListSubscriberAction extends ApiBareAuthAction
{ {
var $list = null; var $list = null;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -52,9 +52,9 @@ class ApiListSubscriberAction extends ApiBareAuthAction
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$arr = array('profile_tag_id' => $this->list->id, $arr = array('profile_tag_id' => $this->list->id,
'profile_id' => $this->target->id); 'profile_id' => $this->target->id);

View File

@ -52,9 +52,9 @@ class ApiOAuthAccessTokenAction extends ApiOAuthAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$datastore = new ApiGNUsocialOAuthDataStore(); $datastore = new ApiGNUsocialOAuthDataStore();
$server = new OAuthServer($datastore); $server = new OAuthServer($datastore);

View File

@ -60,7 +60,7 @@ class ApiOAuthAuthorizeAction extends ApiOAuthAction
return false; return false;
} }
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -88,9 +88,9 @@ class ApiOAuthAuthorizeAction extends ApiOAuthAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {

View File

@ -49,7 +49,7 @@ class ApiOAuthRequestTokenAction extends ApiOAuthAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -69,9 +69,9 @@ class ApiOAuthRequestTokenAction extends ApiOAuthAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$datastore = new ApiGNUsocialOAuthDataStore(); $datastore = new ApiGNUsocialOAuthDataStore();
$server = new OAuthServer($datastore); $server = new OAuthServer($datastore);

View File

@ -88,7 +88,7 @@ class ApiSearchAtomAction extends ApiPrivateAuthAction
* *
* @return boolean success * @return boolean success
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -128,9 +128,9 @@ class ApiSearchAtomAction extends ApiPrivateAuthAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
common_debug("In apisearchatom handle()"); common_debug("In apisearchatom handle()");
$this->showAtom(); $this->showAtom();
} }

View File

@ -57,7 +57,7 @@ class ApiSearchJSONAction extends ApiPrivateAuthAction
* *
* @return boolean true if nothing goes wrong * @return boolean true if nothing goes wrong
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -95,9 +95,9 @@ class ApiSearchJSONAction extends ApiPrivateAuthAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showResults(); $this->showResults();
} }

View File

@ -53,7 +53,7 @@ class ApiTrendsAction extends ApiPrivateAuthAction
* *
* @return boolean false if user doesn't exist * @return boolean false if user doesn't exist
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
return true; return true;
@ -66,9 +66,9 @@ class ApiTrendsAction extends ApiPrivateAuthAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showTrends(); $this->showTrends();
} }

View File

@ -50,7 +50,7 @@ class ApprovegroupAction extends Action
/** /**
* Prepare to run * Prepare to run
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -139,9 +139,9 @@ class ApprovegroupAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
try { try {
if ($this->approve) { if ($this->approve) {

View File

@ -50,7 +50,7 @@ class ApprovesubAction extends Action
/** /**
* Prepare to run * Prepare to run
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -97,9 +97,9 @@ class ApprovesubAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$cur = common_current_user(); $cur = common_current_user();
try { try {

View File

@ -53,7 +53,7 @@ class BlockAction extends ProfileFormAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
if (!parent::prepare($args)) { if (!parent::prepare($args)) {
return false; return false;
@ -78,7 +78,7 @@ class BlockAction extends ProfileFormAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($this->arg('no')) { if ($this->arg('no')) {

View File

@ -50,7 +50,7 @@ class CancelgroupAction extends Action
/** /**
* Prepare to run * Prepare to run
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -127,9 +127,9 @@ class CancelgroupAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
try { try {
$this->request->abort(); $this->request->abort();

View File

@ -51,7 +51,7 @@ class DeleteapplicationAction extends Action
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
if (!parent::prepare($args)) { if (!parent::prepare($args)) {
return false; return false;
@ -89,7 +89,7 @@ class DeleteapplicationAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {

View File

@ -55,7 +55,7 @@ class DeletegroupAction extends RedirectingAction
* @fixme merge common setup code with other group actions * @fixme merge common setup code with other group actions
* @fixme allow group admins to delete their own groups * @fixme allow group admins to delete their own groups
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -114,9 +114,9 @@ class DeletegroupAction extends RedirectingAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($this->arg('no')) { if ($this->arg('no')) {
$this->returnToPrevious(); $this->returnToPrevious();

View File

@ -80,7 +80,7 @@ class DeleteuserAction extends ProfileFormAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($this->arg('no')) { if ($this->arg('no')) {

View File

@ -57,7 +57,7 @@ class EditApplicationAction extends Action
/** /**
* Prepare to run * Prepare to run
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -94,9 +94,9 @@ class EditApplicationAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->handlePost($args); $this->handlePost($args);

View File

@ -60,7 +60,7 @@ class EditpeopletagAction extends Action
* Prepare to run * Prepare to run
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -135,9 +135,9 @@ class EditpeopletagAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->trySave(); $this->trySave();
} else { } else {

View File

@ -54,7 +54,7 @@ class FeaturedAction extends Action
return true; return true;
} }
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
@ -74,9 +74,9 @@ class FeaturedAction extends Action
} }
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -35,7 +35,7 @@ class FoafGroupAction extends Action
return true; return true;
} }
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -76,9 +76,9 @@ class FoafGroupAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
header('Content-Type: application/rdf+xml'); header('Content-Type: application/rdf+xml');

View File

@ -47,7 +47,7 @@ class GeocodeAction extends Action
var $lon = null; var $lon = null;
var $location = null; var $location = null;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$token = $this->trimmed('token'); $token = $this->trimmed('token');
@ -70,7 +70,7 @@ class GeocodeAction extends Action
* @return nothing * @return nothing
* *
*/ */
function handle($args) function handle()
{ {
header('Content-Type: application/json; charset=utf-8'); header('Content-Type: application/json; charset=utf-8');
$location_object = array(); $location_object = array();

View File

@ -49,7 +49,7 @@ class GrantRoleAction extends ProfileFormAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
if (!parent::prepare($args)) { if (!parent::prepare($args)) {
return false; return false;

View File

@ -52,7 +52,7 @@ class GroupblockAction extends RedirectingAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
if (!common_logged_in()) { if (!common_logged_in()) {
@ -110,9 +110,9 @@ class GroupblockAction extends RedirectingAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($this->arg('no')) { if ($this->arg('no')) {
$this->returnToPrevious(); $this->returnToPrevious();

View File

@ -67,16 +67,16 @@ class GroupsAction extends Action
} }
} }
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -52,7 +52,7 @@ class GroupunblockAction extends Action
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
if (!common_logged_in()) { if (!common_logged_in()) {
@ -103,9 +103,9 @@ class GroupunblockAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->unblockProfile(); $this->unblockProfile();
} }

View File

@ -38,9 +38,9 @@ class InviteAction extends Action
return false; return false;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (!common_config('invite', 'enabled')) { if (!common_config('invite', 'enabled')) {
// TRANS: Client error displayed when trying to sent invites while they have been disabled. // TRANS: Client error displayed when trying to sent invites while they have been disabled.
$this->clientError(_('Invites have been disabled.')); $this->clientError(_('Invites have been disabled.'));

View File

@ -54,7 +54,7 @@ class MakeadminAction extends RedirectingAction
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
if (!common_logged_in()) { if (!common_logged_in()) {
@ -111,9 +111,9 @@ class MakeadminAction extends RedirectingAction
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->makeAdmin(); $this->makeAdmin();
} }

View File

@ -50,7 +50,7 @@ class NoticesearchAction extends SearchAction
{ {
protected $q = null; protected $q = null;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);

View File

@ -55,9 +55,9 @@ class NudgeAction extends Action
* *
* @return nothing * @return nothing
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (!common_logged_in()) { if (!common_logged_in()) {
// TRANS: Error message displayed when trying to perform an action that requires a logged in user. // TRANS: Error message displayed when trying to perform an action that requires a logged in user.

View File

@ -53,9 +53,9 @@ class OpensearchAction extends Action
* *
* @return boolean false if user doesn't exist * @return boolean false if user doesn't exist
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$type = $this->trimmed('type'); $type = $this->trimmed('type');
$short_name = ''; $short_name = '';
if ($type == 'people') { if ($type == 'people') {

View File

@ -53,7 +53,7 @@ class OtpAction extends Action
var $returnto; var $returnto;
var $lt; var $lt;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -110,9 +110,9 @@ class OtpAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
// success! // success!
if (!common_set_user($this->user)) { if (!common_set_user($this->user)) {

View File

@ -62,7 +62,7 @@ class PeopletagAction extends Action
} }
} }
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
@ -84,9 +84,9 @@ class PeopletagAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -44,7 +44,7 @@ class PeopletagautocompleteAction extends Action
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -112,7 +112,7 @@ class PeopletagautocompleteAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
//common_log(LOG_DEBUG, 'Autocomplete data: ' . json_encode($this->tags)); //common_log(LOG_DEBUG, 'Autocomplete data: ' . json_encode($this->tags));
if ($this->tags) { if ($this->tags) {

View File

@ -53,7 +53,7 @@ class PeopletaggedAction extends Action
return true; return true;
} }
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
@ -117,9 +117,9 @@ class PeopletaggedAction extends Action
} }
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -68,7 +68,7 @@ class PeopletagsbyuserAction extends Action
} }
} }
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -135,9 +135,9 @@ class PeopletagsbyuserAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
# Post from the tag dropdown; redirect to a GET # Post from the tag dropdown; redirect to a GET

View File

@ -54,7 +54,7 @@ class PeopletagsforuserAction extends Action
} }
} }
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -95,9 +95,9 @@ class PeopletagsforuserAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -53,7 +53,7 @@ class PeopletagsubscribersAction extends Action
return true; return true;
} }
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
@ -117,9 +117,9 @@ class PeopletagsubscribersAction extends Action
} }
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -56,7 +56,7 @@ class PeopletagsubscriptionsAction extends Action
} }
} }
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -97,9 +97,9 @@ class PeopletagsubscriptionsAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -64,7 +64,7 @@ class PluginEnableAction extends Action
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -121,7 +121,7 @@ class PluginEnableAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
$key = 'disable-' . $this->plugin; $key = 'disable-' . $this->plugin;
Config::save('plugins', $key, $this->overrideValue()); Config::save('plugins', $key, $this->overrideValue());

View File

@ -68,7 +68,7 @@ class ProfilecompletionAction extends Action
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -120,7 +120,7 @@ class ProfilecompletionAction extends Action
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
$this->msg = null; $this->msg = null;

View File

@ -45,7 +45,7 @@ class ProfiletagbyidAction extends Action
return true; return true;
} }
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -83,7 +83,7 @@ class ProfiletagbyidAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
common_redirect($this->peopletag->homeUrl(), 303); common_redirect($this->peopletag->homeUrl(), 303);
} }

View File

@ -92,9 +92,9 @@ class PublictagcloudAction extends Action
$this->elementEnd('div'); $this->elementEnd('div');
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -29,9 +29,9 @@ class RecoverpasswordAction extends Action
var $msg = null; var $msg = null;
var $success = null; var $success = null;
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (common_logged_in()) { if (common_logged_in()) {
// TRANS: Client error displayed trying to recover password while already logged in. // TRANS: Client error displayed trying to recover password while already logged in.
$this->clientError(_('You are already logged in!')); $this->clientError(_('You are already logged in!'));

View File

@ -63,7 +63,7 @@ class RedirectAction extends Action
* *
* @return nothing * @return nothing
*/ */
function handle($args) function handle()
{ {
common_redirect(common_local_url($this->arg('nextAction'), $this->arg('args'))); common_redirect(common_local_url($this->arg('nextAction'), $this->arg('args')));
} }

View File

@ -120,9 +120,9 @@ class RegisterAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (common_config('site', 'closed')) { if (common_config('site', 'closed')) {
// TRANS: Client error displayed when trying to register to a closed site. // TRANS: Client error displayed when trying to register to a closed site.

View File

@ -66,7 +66,7 @@ class RemovepeopletagAction extends Action
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -120,7 +120,7 @@ class RemovepeopletagAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
// Throws exception on error // Throws exception on error

View File

@ -49,7 +49,7 @@ class RevokeRoleAction extends ProfileFormAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
if (!parent::prepare($args)) { if (!parent::prepare($args)) {
return false; return false;

View File

@ -85,7 +85,7 @@ class RsdAction extends Action
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -126,7 +126,7 @@ class RsdAction extends Action
* *
* @return nothing * @return nothing
*/ */
function handle($args) function handle()
{ {
header('Content-Type: application/rsd+xml'); header('Content-Type: application/rsd+xml');

View File

@ -49,7 +49,7 @@ class SandboxAction extends ProfileFormAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
if (!parent::prepare($args)) { if (!parent::prepare($args)) {
return false; return false;

View File

@ -65,7 +65,7 @@ class ShowApplicationAction extends Action
* *
* @return success flag * @return success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -101,9 +101,9 @@ class ShowApplicationAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {

View File

@ -24,7 +24,7 @@ class SubeditAction extends Action
{ {
var $profile = null; var $profile = null;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -58,9 +58,9 @@ class SubeditAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$cur = common_current_user(); $cur = common_current_user();

View File

@ -64,7 +64,7 @@ class SubscribeAction extends Action
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -118,7 +118,7 @@ class SubscribeAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
// Throws exception on error // Throws exception on error

View File

@ -50,7 +50,7 @@ class SubscribepeopletagAction extends Action
/** /**
* Prepare to run * Prepare to run
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -106,9 +106,9 @@ class SubscribepeopletagAction extends Action
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$cur = common_current_user(); $cur = common_current_user();

View File

@ -22,9 +22,9 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
// @todo FIXME: documentation needed. // @todo FIXME: documentation needed.
class SupAction extends Action class SupAction extends Action
{ {
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$seconds = $this->trimmed('seconds'); $seconds = $this->trimmed('seconds');

View File

@ -44,7 +44,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
*/ */
class UnblockAction extends ProfileFormAction class UnblockAction extends ProfileFormAction
{ {
function prepare($args) function prepare(array $args = array())
{ {
if (!parent::prepare($args)) { if (!parent::prepare($args)) {
return false; return false;

View File

@ -49,7 +49,7 @@ class UnsandboxAction extends ProfileFormAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
if (!parent::prepare($args)) { if (!parent::prepare($args)) {
return false; return false;

View File

@ -44,9 +44,9 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
*/ */
class UnsubscribeAction extends Action class UnsubscribeAction extends Action
{ {
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (!common_logged_in()) { if (!common_logged_in()) {
// TRANS: Error message displayed when trying to perform an action that requires a logged in user. // TRANS: Error message displayed when trying to perform an action that requires a logged in user.
$this->clientError(_('Not logged in.')); $this->clientError(_('Not logged in.'));

View File

@ -51,7 +51,7 @@ class UnsubscribepeopletagAction extends Action
* Prepare to run * Prepare to run
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -106,9 +106,9 @@ class UnsubscribepeopletagAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$cur = common_current_user(); $cur = common_current_user();

View File

@ -60,7 +60,7 @@ class AdminPanelAction extends Action
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -119,7 +119,7 @@ class AdminPanelAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->checkSessionToken(); $this->checkSessionToken();

View File

@ -51,7 +51,7 @@ class ProfileFormAction extends RedirectingAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -96,9 +96,9 @@ class ProfileFormAction extends RedirectingAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {
try { try {

View File

@ -56,9 +56,9 @@ class SearchAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -49,9 +49,9 @@ class AccountManagementControlDocumentAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
header('Content-Type: application/json; charset=utf-8'); header('Content-Type: application/json; charset=utf-8');

View File

@ -49,9 +49,9 @@ class AccountManagementSessionStatusAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$cur = common_current_user(); $cur = common_current_user();
if(empty($cur)) { if(empty($cur)) {

View File

@ -106,7 +106,7 @@ class SpamAction extends Action
function handle($argarray=null) function handle($argarray=null)
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -47,9 +47,9 @@ class AnonDisfavorAction extends RedirectingAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$profile = AnonymousFavePlugin::getAnonProfile(); $profile = AnonymousFavePlugin::getAnonProfile();

View File

@ -47,9 +47,9 @@ class AnonFavorAction extends RedirectingAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$profile = AnonymousFavePlugin::getAnonProfile(); $profile = AnonymousFavePlugin::getAnonProfile();

View File

@ -57,7 +57,7 @@ class ApiTimelineBookmarksAction extends ApiBareAuthAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -82,9 +82,9 @@ class ApiTimelineBookmarksAction extends ApiBareAuthAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showTimeline(); $this->showTimeline();
} }

View File

@ -59,7 +59,7 @@ class BookmarkforurlAction extends Action
* *
* @return boolean true * @return boolean true
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);

View File

@ -60,7 +60,7 @@ class BookmarksAction extends Action
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -107,9 +107,9 @@ class BookmarksAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -21,9 +21,9 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
class CasloginAction extends Action class CasloginAction extends Action
{ {
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (common_is_real_login()) { if (common_is_real_login()) {
// TRANS: Client error displayed when trying to log in while already logged on. // TRANS: Client error displayed when trying to log in while already logged on.
$this->clientError(_m('Already logged in.')); $this->clientError(_m('Already logged in.'));

View File

@ -45,7 +45,7 @@ class ShortenAction extends Action
{ {
private $text; private $text;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->groups=array(); $this->groups=array();
@ -60,7 +60,7 @@ class ShortenAction extends Action
function handle($args=null) function handle($args=null)
{ {
parent::handle($args); parent::handle();
header('Content-Type: text/plain'); header('Content-Type: text/plain');
$shortened_text = common_shorten_links($this->text); $shortened_text = common_shorten_links($this->text);
print $shortened_text; print $shortened_text;

View File

@ -62,7 +62,7 @@ class ShowmessageAction extends Action
* *
* @return success flag * @return success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -89,7 +89,7 @@ class ShowmessageAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
$this->showPage(); $this->showPage();
} }

View File

@ -46,7 +46,7 @@ class MailboxAction extends Action
{ {
var $page = null; var $page = null;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -70,9 +70,9 @@ class MailboxAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (!$this->user) { if (!$this->user) {
// TRANS: Client error displayed when trying to access a mailbox without providing a user. // TRANS: Client error displayed when trying to access a mailbox without providing a user.

View File

@ -57,7 +57,7 @@ class GlobalApiAction extends Action
* @return boolean continuation flag * @return boolean continuation flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
GNUsocial::setApi(true); // reduce exception reports to aid in debugging GNUsocial::setApi(true); // reduce exception reports to aid in debugging

View File

@ -42,7 +42,7 @@ class TimelistAction extends Action {
* *
* @return boolean true * @return boolean true
*/ */
function prepare($args) { function prepare(array $args = array()) {
parent::prepare($args); parent::prepare($args);
$this->start = $this->arg('start'); $this->start = $this->arg('start');
$this->duration = $this->boolean('duration', false); $this->duration = $this->boolean('duration', false);
@ -56,9 +56,9 @@ class TimelistAction extends Action {
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (!common_logged_in()) { if (!common_logged_in()) {
// TRANS: Error message displayed when trying to perform an action that requires a logged in user. // TRANS: Error message displayed when trying to perform an action that requires a logged in user.

View File

@ -43,7 +43,7 @@ class UserautocompleteAction extends Action
* *
* @return boolean true if nothing goes wrong * @return boolean true if nothing goes wrong
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->query = $this->trimmed('term'); $this->query = $this->trimmed('term');
@ -57,9 +57,9 @@ class UserautocompleteAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showResults(); $this->showResults();
} }

View File

@ -48,7 +48,7 @@ class FacebookdeauthorizeAction extends Action
* *
* @return boolean true * @return boolean true
*/ */
function prepare($args) function prepare(array $args = array())
{ {
$this->facebook = Facebookclient::getFacebook(); $this->facebook = Facebookclient::getFacebook();
@ -60,9 +60,9 @@ class FacebookdeauthorizeAction extends Action
* *
* @param array $args is ignored since it's now passed in in prepare() * @param array $args is ignored since it's now passed in in prepare()
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$data = $this->facebook->getSignedRequest(); $data = $this->facebook->getSignedRequest();

View File

@ -37,7 +37,7 @@ class FacebookfinishloginAction extends Action
private $fbuser = null; // Facebook user object (JSON) private $fbuser = null; // Facebook user object (JSON)
private $accessToken = null; // Access token provided by Facebook JS API private $accessToken = null; // Access token provided by Facebook JS API
function prepare($args) { function prepare(array $args = array()) {
parent::prepare($args); parent::prepare($args);
// Check cookie for a valid access_token // Check cookie for a valid access_token
@ -79,9 +79,9 @@ class FacebookfinishloginAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (common_is_real_login()) { if (common_is_real_login()) {

View File

@ -34,9 +34,9 @@ if (!defined('STATUSNET')) {
class FacebookloginAction extends Action class FacebookloginAction extends Action
{ {
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (common_is_real_login()) { if (common_is_real_login()) {
// TRANS: Client error displayed when trying to login while already logged in. // TRANS: Client error displayed when trying to login while already logged in.

View File

@ -57,7 +57,7 @@ class ApiFavoriteDestroyAction extends ApiAuthAction
* *
* @return boolean success flag * @return boolean success flag
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -82,9 +82,9 @@ class ApiFavoriteDestroyAction extends ApiAuthAction
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($_SERVER['REQUEST_METHOD'] != 'POST') { if ($_SERVER['REQUEST_METHOD'] != 'POST') {
$this->clientError( $this->clientError(

View File

@ -95,7 +95,7 @@ class FavoritedAction extends Action
* *
* @todo move queries from showContent() to here * @todo move queries from showContent() to here
*/ */
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1; $this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
@ -114,9 +114,9 @@ class FavoritedAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -33,7 +33,7 @@ class NewphotoAction extends Action
{ {
var $user = null; var $user = null;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->user = common_current_user(); $this->user = common_current_user();
@ -50,9 +50,9 @@ class NewphotoAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($this->isPost()) { if ($this->isPost()) {
$this->handlePost($args); $this->handlePost($args);

View File

@ -36,7 +36,7 @@ class EditphotoAction extends Action
{ {
var $user = null; var $user = null;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$args = $this->returnToArgs(); $args = $this->returnToArgs();
@ -46,9 +46,9 @@ class EditphotoAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if($_SERVER['REQUEST_METHOD'] == 'POST') { if($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->handlePost(); $this->handlePost();
} }

View File

@ -38,7 +38,7 @@ class PhotosAction extends Action
{ {
var $user = null; var $user = null;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -53,9 +53,9 @@ class PhotosAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -36,16 +36,16 @@ class PhotouploadAction extends Action
{ {
var $user = null; var $user = null;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->user = common_current_user(); $this->user = common_current_user();
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if($_SERVER['REQUEST_METHOD'] == 'POST') { if($_SERVER['REQUEST_METHOD'] == 'POST') {
$this->handlePost(); $this->handlePost();
} }

View File

@ -38,7 +38,7 @@ class BioAction extends Action
{ {
var $user = null; var $user = null;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -51,9 +51,9 @@ class BioAction extends Action
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -34,7 +34,7 @@ class PostvideoAction extends Action {
var $user = null; var $user = null;
var $url = null; var $url = null;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->user = common_current_user(); $this->user = common_current_user();
@ -54,9 +54,9 @@ class PostvideoAction extends Action {
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if ($this->isPost()) { if ($this->isPost()) {
$this->handlePost($args); $this->handlePost($args);

View File

@ -34,7 +34,7 @@ class ShowvideoAction extends ShownoticeAction
protected $id = null; protected $id = null;
protected $vid = null; protected $vid = null;
function prepare($args) function prepare(array $args = array())
{ {
OwnerDesignAction::prepare($args); OwnerDesignAction::prepare($args);
$this->id = $this->trimmed('id'); $this->id = $this->trimmed('id');

View File

@ -46,7 +46,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
*/ */
class OembedproxyAction extends OembedAction class OembedproxyAction extends OembedAction
{ {
function handle($args) function handle()
{ {
// Trigger short error responses; not a human-readable web page. // Trigger short error responses; not a human-readable web page.
GNUsocial::setApi(true); GNUsocial::setApi(true);

View File

@ -42,7 +42,7 @@ if (!defined('GNUSOCIAL')) { exit(1); }
*/ */
class AllmapAction extends MapAction class AllmapAction extends MapAction
{ {
function prepare($args) function prepare(array $args = array())
{ {
if (parent::prepare($args)) { if (parent::prepare($args)) {
$stream = new InboxNoticeStream($this->user->getProfile(), $this->scoped); $stream = new InboxNoticeStream($this->user->getProfile(), $this->scoped);

View File

@ -48,7 +48,7 @@ class MapAction extends Action
var $page = null; var $page = null;
var $notices = null; var $notices = null;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
@ -94,9 +94,9 @@ class MapAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$this->showPage(); $this->showPage();
} }

View File

@ -44,7 +44,7 @@ if (!defined('STATUSNET')) {
*/ */
class UsermapAction extends MapAction class UsermapAction extends MapAction
{ {
function prepare($args) function prepare(array $args = array())
{ {
if(parent::prepare($args)) { if(parent::prepare($args)) {
$this->notice = empty($this->tag) $this->notice = empty($this->tag)

View File

@ -31,7 +31,7 @@ class OStatusTagAction extends OStatusInitAction
var $profile; var $profile;
var $err; var $err;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);

View File

@ -58,9 +58,9 @@ class FinishaddopenidAction extends Action
* *
* @return void * @return void
*/ */
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (!common_logged_in()) { if (!common_logged_in()) {
// TRANS: Error message displayed when trying to perform an action that requires a logged in user. // TRANS: Error message displayed when trying to perform an action that requires a logged in user.
$this->clientError(_m('Not logged in.')); $this->clientError(_m('Not logged in.'));

View File

@ -29,9 +29,9 @@ class FinishopenidloginAction extends Action
var $username = null; var $username = null;
var $message = null; var $message = null;
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (common_is_real_login()) { if (common_is_real_login()) {
// TRANS: Client error message trying to log on with OpenID while already logged on. // TRANS: Client error message trying to log on with OpenID while already logged on.
$this->clientError(_m('Already logged in.')); $this->clientError(_m('Already logged in.'));

View File

@ -25,9 +25,9 @@ require_once INSTALLDIR.'/plugins/OpenID/openid.php';
class OpenidloginAction extends Action class OpenidloginAction extends Action
{ {
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if (common_is_real_login()) { if (common_is_real_login()) {
// TRANS: Client error message trying to log on with OpenID while already logged on. // TRANS: Client error message trying to log on with OpenID while already logged on.
$this->clientError(_m('Already logged in.')); $this->clientError(_m('Already logged in.'));

View File

@ -50,16 +50,16 @@ class OpenidserverAction extends Action
{ {
var $oserver; var $oserver;
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
$this->oserver = oid_server(); $this->oserver = oid_server();
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
$request = $this->oserver->decodeRequest(); $request = $this->oserver->decodeRequest();
if (in_array($request->mode, array('checkid_immediate', if (in_array($request->mode, array('checkid_immediate',
'checkid_setup'))) { 'checkid_setup'))) {

View File

@ -51,7 +51,7 @@ class OpenidtrustAction extends Action
return _m('OpenID Identity Verification'); return _m('OpenID Identity Verification');
} }
function prepare($args) function prepare(array $args = array())
{ {
parent::prepare($args); parent::prepare($args);
common_ensure_session(); common_ensure_session();
@ -71,9 +71,9 @@ class OpenidtrustAction extends Action
return true; return true;
} }
function handle($args) function handle()
{ {
parent::handle($args); parent::handle();
if($_SERVER['REQUEST_METHOD'] == 'POST'){ if($_SERVER['REQUEST_METHOD'] == 'POST'){
$this->handleSubmit(); $this->handleSubmit();
}else{ }else{

Some files were not shown because too many files have changed in this diff Show More