We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 64dbd935 authored by mattl's avatar mattl

Some PHP strict warning fixes

parent 1c042028
...@@ -68,7 +68,7 @@ class User_group extends Managed_DataObject ...@@ -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', static $sizenames = array(AVATAR_PROFILE_SIZE => 'profile',
AVATAR_STREAM_SIZE => 'stream', AVATAR_STREAM_SIZE => 'stream',
......
...@@ -80,7 +80,8 @@ class ThreadedNoticeList extends NoticeList ...@@ -80,7 +80,8 @@ class ThreadedNoticeList extends NoticeList
$total = count($notices); $total = count($notices);
$notices = array_slice($notices, 0, NOTICES_PER_PAGE); $notices = array_slice($notices, 0, NOTICES_PER_PAGE);
self::prefill(self::_allNotices($notices)); $allnotices = self::_allNotices($notices);
self::prefill($allnotices);
$conversations = array(); $conversations = array();
......
...@@ -318,7 +318,7 @@ class XmppPlugin extends ImPlugin ...@@ -318,7 +318,7 @@ class XmppPlugin extends ImPlugin
$this->queuedConnection()->message($screenname, $body, 'chat'); $this->queuedConnection()->message($screenname, $body, 'chat');
} }
function sendNotice($screenname, $notice) function sendNotice($screenname, Notice $notice)
{ {
$msg = $this->formatNotice($notice); $msg = $this->formatNotice($notice);
$entry = $this->format_entry($notice); $entry = $this->format_entry($notice);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment