Commit 701f6ff6 authored by mmn's avatar mmn

Allow Profile->getCurrentNotice to send scoped profile info

not that we're using it anywhere (yet anyway).
parent 6a169398
......@@ -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) {
......
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