From: Mikael Nordfeldth Date: Mon, 4 Jan 2016 20:42:24 +0000 (+0100) Subject: Allow Profile->getCurrentNotice to send scoped profile info X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=701f6ff6080712ce6a7c90b6581c0a5c101a46bc;p=quix0rs-gnu-social.git Allow Profile->getCurrentNotice to send scoped profile info not that we're using it anywhere (yet anyway). --- diff --git a/classes/Profile.php b/classes/Profile.php index cd9b15961b..945d1a74ca 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -233,10 +233,10 @@ class Profile extends Managed_DataObject * * @return mixed Notice or null */ - function getCurrentNotice() + function getCurrentNotice(Profile $scoped=null) { try { - $notice = $this->getNotices(0, 1); + $notice = $this->getNotices(0, 1, 0, 0, $scoped); if ($notice->fetch()) { if ($notice instanceof ArrayWrapper) {