From 91e63866fb150ccac547609024de7456e984df62 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 26 Jan 2009 17:14:08 +0100 Subject: [PATCH] move block form --- actions/subscribers.php | 2 +- lib/profilelist.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/actions/subscribers.php b/actions/subscribers.php index fb8733c773..e88cbf693a 100644 --- a/actions/subscribers.php +++ b/actions/subscribers.php @@ -96,7 +96,7 @@ class SubscribersAction extends GalleryAction class SubscribersList extends ProfileList { - function showOwnerControls($profile) + function showBlockForm() { $bf = new BlockForm($this->out, $profile, array('action' => 'subscribers', diff --git a/lib/profilelist.php b/lib/profilelist.php index 499d74f7b5..3bc109fa0d 100644 --- a/lib/profilelist.php +++ b/lib/profilelist.php @@ -191,6 +191,8 @@ class ProfileList extends Widget $this->out->elementEnd('div'); + $this->out->elementStart('div', 'entity_actions'); + if ($user && $user->id != $this->profile->id) { # XXX: special-case for user looking at own # subscriptions page @@ -201,8 +203,13 @@ class ProfileList extends Widget $sf = new SubscribeForm($this->out, $this->profile); $sf->show(); } + if ($user && $user->id == $this->owner->id) { + $this->showBlockForm(); + } } + $this->out->elementEnd('div'); + $this->out->elementEnd('li'); }