Update prepare() method on Action subclasses.
Fixes handle()-related strict warnings such as "Strict Standards: Declaration of AdminPanelAction::prepare() should be compatible with Action::prepare(array $args = Array) Ref. #190
This commit is contained in:
@@ -42,7 +42,7 @@ if (!defined('GNUSOCIAL')) { exit(1); }
|
||||
*/
|
||||
class AllmapAction extends MapAction
|
||||
{
|
||||
function prepare($args)
|
||||
function prepare(array $args = array())
|
||||
{
|
||||
if (parent::prepare($args)) {
|
||||
$stream = new InboxNoticeStream($this->user->getProfile(), $this->scoped);
|
||||
|
@@ -48,7 +48,7 @@ class MapAction extends Action
|
||||
var $page = null;
|
||||
var $notices = null;
|
||||
|
||||
function prepare($args)
|
||||
function prepare(array $args = array())
|
||||
{
|
||||
parent::prepare($args);
|
||||
|
||||
|
@@ -44,7 +44,7 @@ if (!defined('STATUSNET')) {
|
||||
*/
|
||||
class UsermapAction extends MapAction
|
||||
{
|
||||
function prepare($args)
|
||||
function prepare(array $args = array())
|
||||
{
|
||||
if(parent::prepare($args)) {
|
||||
$this->notice = empty($this->tag)
|
||||
|
Reference in New Issue
Block a user