Merge pull request #239 from mmn/master

get rid of some PHP Strict Standards warnings
This commit is contained in:
Hannes Mannerheim 2015-07-12 12:57:13 +02:00
commit 77f1b9d374
2 changed files with 5 additions and 7 deletions

View File

@ -57,9 +57,9 @@ class ApiQvitterCheckLoginAction extends ApiAction
*
* @return void
*/
function handle($args)
protected function handle()
{
parent::handle($args);
parent::handle();
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
$this->clientError(

View File

@ -65,7 +65,7 @@ class ApiTimelinePublicAndExternalAction extends ApiPrivateAuthAction
* @return boolean success flag
*
*/
function prepare($args)
protected function prepare(array $args=array())
{
parent::prepare($args);
@ -79,13 +79,11 @@ class ApiTimelinePublicAndExternalAction extends ApiPrivateAuthAction
*
* Just show the notices
*
* @param array $args $_REQUEST data (unused)
*
* @return void
*/
function handle($args)
protected function handle()
{
parent::handle($args);
parent::handle();
$this->showTimeline();
}