summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-15 20:54:03 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-15 20:54:03 +0000
commit7233e89be621c2b9ad80b8a7eb2bc16185596cca (patch)
tree0adedc8accd9f90ea26fd008d3c4f4cf371ef839 /lib/noticelist.php
parentc42b88308683fccfc7710a39a363d98270ade39b (diff)
parentc08eadc774c2231e6b434ba067e2d7115404606f (diff)
Merge ../csarven into uiredesign
Conflicts: lib/action.php
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r--lib/noticelist.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index fb3e66f9f..0fc6d513f 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -229,9 +229,11 @@ class NoticeListItem extends Widget
$user = common_current_user();
if ($user) {
if ($user->hasFave($this->notice)) {
- common_disfavor_form($this->notice);
+ $disfavor = new DisfavorForm($this->out, $this->notice);
+ $disfavor->show();
} else {
- common_favor_form($this->notice);
+ $favor = new FavorForm($this->out, $this->notice);
+ $favor->show();
}
}
}