mirror of
https://github.com/friendica/friendica
synced 2025-01-09 00:04:54 +00:00
Use class variables
This commit is contained in:
parent
02084331e3
commit
e81c911b49
3 changed files with 4 additions and 6 deletions
|
@ -37,7 +37,7 @@ class Channel extends ChannelModule
|
||||||
$this->parseRequest($request);
|
$this->parseRequest($request);
|
||||||
|
|
||||||
$o = '';
|
$o = '';
|
||||||
if (!empty($request['force'])) {
|
if ($this->force) {
|
||||||
if ($this->timeline->isChannel($this->selectedTab)) {
|
if ($this->timeline->isChannel($this->selectedTab)) {
|
||||||
$items = $this->getChannelItems();
|
$items = $this->getChannelItems();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -39,7 +39,7 @@ class Community extends CommunityModule
|
||||||
$this->parseRequest($request);
|
$this->parseRequest($request);
|
||||||
|
|
||||||
$o = '';
|
$o = '';
|
||||||
if (!empty($request['force'])) {
|
if ($this->force) {
|
||||||
$o = DI::conversation()->render($this->getCommunityItems(), Conversation::MODE_COMMUNITY, true, false, 'commented', DI::userSession()->getLocalUserId());
|
$o = DI::conversation()->render($this->getCommunityItems(), Conversation::MODE_COMMUNITY, true, false, 'commented', DI::userSession()->getLocalUserId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,11 +35,9 @@ class Network extends NetworkModule
|
||||||
|
|
||||||
$this->parseRequest($request);
|
$this->parseRequest($request);
|
||||||
|
|
||||||
$profile_uid = intval($request['p']);
|
|
||||||
|
|
||||||
$o = '';
|
$o = '';
|
||||||
|
|
||||||
if (empty($request['force'])) {
|
if (!$this->force) {
|
||||||
System::htmlUpdateExit($o);
|
System::htmlUpdateExit($o);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +49,7 @@ class Network extends NetworkModule
|
||||||
$items = $this->getItems();
|
$items = $this->getItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
$o = $this->conversation->render($items, Conversation::MODE_NETWORK, $profile_uid, false, $this->getOrder(), $this->session->getLocalUserId());
|
$o = $this->conversation->render($items, Conversation::MODE_NETWORK, true, false, $this->getOrder(), $this->session->getLocalUserId());
|
||||||
|
|
||||||
System::htmlUpdateExit($o);
|
System::htmlUpdateExit($o);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue