Skip to content

Commit caf6d31

Browse files
committed
Make use of getBaseUrlParameters()
1 parent d1aaa17 commit caf6d31

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

files/lib/page/ConversationListPage.class.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use wcf\data\conversation\UserConversationList;
66
use wcf\system\listView\user\ConversationListView;
7-
use wcf\system\request\LinkHandler;
87
use wcf\system\WCF;
98

109
/**
@@ -56,9 +55,7 @@ public function readParameters()
5655
}
5756
}
5857

59-
/**
60-
* @inheritDoc
61-
*/
58+
#[\Override]
6259
public function readData()
6360
{
6461
parent::readData();
@@ -95,12 +92,10 @@ protected function createListView(): ConversationListView
9592
}
9693

9794
#[\Override]
98-
protected function initListView(): void
95+
protected function getBaseUrlParameters(): array
9996
{
100-
parent::initListView();
101-
102-
$this->listView->setBaseUrl(LinkHandler::getInstance()->getControllerLink(static::class, [
103-
'filter' => $this->filter,
104-
]));
97+
return [
98+
'filter' => $this->filter ?: null,
99+
];
105100
}
106101
}

templates/conversationList.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</header>
2727
{/capture}
2828

29-
{capture assign='headContent'}
29+
{capture append='headContent'}
3030
<link rel="alternate" type="application/rss+xml" title="{lang}wcf.global.button.rss{/lang}" href="{link controller='ConversationRssFeed' at=$__wcf->user->getAccessToken()}{/link}">
3131
{/capture}
3232

0 commit comments

Comments
 (0)