From 701f6ff6080712ce6a7c90b6581c0a5c101a46bc Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 4 Jan 2016 21:42:24 +0100 Subject: [PATCH] Allow Profile->getCurrentNotice to send scoped profile info not that we're using it anywhere (yet anyway). --- classes/Profile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {