forked from GNUsocial/gnu-social
Some PHP strict warning fixes
This commit is contained in:
parent
1c042028dc
commit
64dbd93534
@ -68,7 +68,7 @@ class User_group extends Managed_DataObject
|
||||
);
|
||||
}
|
||||
|
||||
function defaultLogo($size)
|
||||
public static function defaultLogo($size)
|
||||
{
|
||||
static $sizenames = array(AVATAR_PROFILE_SIZE => 'profile',
|
||||
AVATAR_STREAM_SIZE => 'stream',
|
||||
|
@ -80,7 +80,8 @@ class ThreadedNoticeList extends NoticeList
|
||||
$total = count($notices);
|
||||
$notices = array_slice($notices, 0, NOTICES_PER_PAGE);
|
||||
|
||||
self::prefill(self::_allNotices($notices));
|
||||
$allnotices = self::_allNotices($notices);
|
||||
self::prefill($allnotices);
|
||||
|
||||
$conversations = array();
|
||||
|
||||
|
@ -318,7 +318,7 @@ class XmppPlugin extends ImPlugin
|
||||
$this->queuedConnection()->message($screenname, $body, 'chat');
|
||||
}
|
||||
|
||||
function sendNotice($screenname, $notice)
|
||||
function sendNotice($screenname, Notice $notice)
|
||||
{
|
||||
$msg = $this->formatNotice($notice);
|
||||
$entry = $this->format_entry($notice);
|
||||
|
Loading…
Reference in New Issue
Block a user