projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a16939
)
Allow Profile->getCurrentNotice to send scoped profile info
author
Mikael Nordfeldth
<mmn@hethane.se>
Mon, 4 Jan 2016 20:42:24 +0000
(21:42 +0100)
committer
Mikael 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
patch
|
blob
|
history
diff --git
a/classes/Profile.php
b/classes/Profile.php
index cd9b15961b9dd89b66f1a0b42a2b1b102d4eff47..945d1a74ca2cb6b757318af3266bb82561a02ed6 100644
(file)
--- 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) {