summaryrefslogtreecommitdiff
diff options
authorMikael Nordfeldth <[email protected]>2016-01-04 21:42:24 +0100
committerMikael Nordfeldth <[email protected]>2016-01-04 21:42:24 +0100
commit701f6ff6080712ce6a7c90b6581c0a5c101a46bc (patch)
treef958cf8d9bec738e014bb0ed0ec029f69d95963a
parent6a169398308889c7a0e0e253db91c25a893c6950 (diff)
downloadsocial-master.tar.gz
Allow Profile->getCurrentNotice to send scoped profile infoHEADnightlymaster1.2.x
not that we're using it anywhere (yet anyway).
-rw-r--r--classes/Profile.php4
1 files 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) {