summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-11-20 06:38:39 -0500
committerEvan Prodromou <evan@prodromou.name>2008-11-20 06:38:39 -0500
commitaab4228b53c41f9f34200ba69a8f89303fd648f0 (patch)
tree0e84a97489dd53948d62a2ac0e656a2629748fc3 /actions
parent383e7409204ec6b62f172185f6800c281f5a2908 (diff)
display subscriptions/subscribers as a list
darcs-hash:20081120113839-84dde-169dceadab4d365c81282e8a68a744b7c1aa6a94.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/subscribers.php5
-rw-r--r--actions/subscriptions.php7
2 files changed, 5 insertions, 7 deletions
diff --git a/actions/subscribers.php b/actions/subscribers.php
index 2cc82d457..2e37e0315 100644
--- a/actions/subscribers.php
+++ b/actions/subscribers.php
@@ -36,9 +36,8 @@ class SubscribersAction extends GalleryAction {
}
}
- function define_subs(&$subs, &$profile) {
- $subs->subscribed = $profile->id;
- $subs->whereAdd('subscriber != ' . $profile->id);
+ function fields() {
+ return array('subscriber', 'subscribed');
}
function div_class() {
diff --git a/actions/subscriptions.php b/actions/subscriptions.php
index 5566acb41..aebfa22e8 100644
--- a/actions/subscriptions.php
+++ b/actions/subscriptions.php
@@ -36,9 +36,8 @@ class SubscriptionsAction extends GalleryAction {
}
}
- function define_subs(&$subs, &$profile) {
- $subs->subscriber = $profile->id;
- $subs->whereAdd('subscribed != ' . $profile->id);
+ function fields() {
+ return array('subscribed', 'subscriber');
}
function div_class() {
@@ -48,4 +47,4 @@ class SubscriptionsAction extends GalleryAction {
function get_other(&$subs) {
return $subs->subscribed;
}
-} \ No newline at end of file
+}