Update handle() method on Action subclasses.

Fixes handle()-related strict warnings such as "Strict Standards:
Declaration of AdminPanelAction::handle() should be compatible with
Action::handle()"

Ref. #190
This commit is contained in:
Chimo
2016-06-01 02:05:11 +00:00
parent bd306bdb9f
commit ba2975aac8
103 changed files with 181 additions and 181 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -71,9 +71,9 @@ class OpenidtrustAction extends Action
return true;
}
function handle($args)
function handle()
{
parent::handle($args);
parent::handle();
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$this->handleSubmit();
}else{

View File

@@ -359,9 +359,9 @@ class AutosubmitAction extends Action
var $form_html = null;
var $form_id = null;
function handle($args)
function handle()
{
parent::handle($args);
parent::handle();
$this->showPage();
}