summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-07 01:43:58 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-07 01:43:58 -0400
commit8d3ec9c92076e172e5871e3603c143333d73ac3c (patch)
tree987471d0d11cec6e46d8520494eb63ea4985eba0 /classes/User.php
parentf6303475aa512ce96759c9f39b7a4b7d2e6fb7f9 (diff)
twiddle a few bits to make replies work correctly
darcs-hash:20080707054358-84dde-916977a2af4f792e0dc9e02a9f5344ec60911319.gz
Diffstat (limited to 'classes/User.php')
-rw-r--r--classes/User.php17
1 files changed, 4 insertions, 13 deletions
diff --git a/classes/User.php b/classes/User.php
index b22e486f3..c5119de15 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -95,17 +95,8 @@ class User extends DB_DataObject
return !in_array($nickname, $merged);
}
- function getCurrentNotice() {
- $notice = DB_DataObject::factory('notice');
- $profile = $this->getProfile();
- $notice->profile_id = $profile->id;
- $notice->limit(1);
- $notice->orderBy('created DESC');
- if ($notice->find()) {
- $notice->fetch();
- return $notice;
- }
- return NULL;
- }
-
+ function getCurrentNotice($dt=NULL) {
+ $profile = $this->getProfile();
+ return $profile->getCurrentNotice($dt);
+ }
}