]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Allow Profile->getCurrentNotice to send scoped profile info
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 4 Jan 2016 20:42:24 +0000 (21:42 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 4 Jan 2016 20:42:24 +0000 (21:42 +0100)
not that we're using it anywhere (yet anyway).

classes/Profile.php

index cd9b15961b9dd89b66f1a0b42a2b1b102d4eff47..945d1a74ca2cb6b757318af3266bb82561a02ed6 100644 (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) {