Some PHP strict warning fixes

This commit is contained in:
Mikael Nordfeldth 2013-10-06 03:37:12 +02:00
parent 1c042028dc
commit 64dbd93534
3 changed files with 4 additions and 3 deletions

View File

@ -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',

View File

@ -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();

View File

@ -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);