move block form
This commit is contained in:
parent
8d95151f7a
commit
91e63866fb
@ -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',
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user