Allow Profile->getCurrentNotice to send scoped profile info

not that we're using it anywhere (yet anyway).
This commit is contained in:
Mikael Nordfeldth 2016-01-04 21:42:24 +01:00
parent 6a16939830
commit 701f6ff608

View File

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