Skip to content

Commit 7262ebb

Browse files
committed
Remove unused template variable boxPosition
1 parent 0186d28 commit 7262ebb

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

wcfsetup/install/files/lib/system/box/ArticleListBoxController.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ protected function getTemplate()
9494
return WCF::getTPL()->render('wcf', 'boxArticleList', [
9595
'boxArticleList' => $this->objectList,
9696
'boxSortField' => $this->sortField,
97-
'boxPosition' => $this->box->position,
9897
]);
9998
}
10099
}

wcfsetup/install/files/lib/system/box/UserTrophyListBoxController.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ public function getTemplate()
150150

151151
UserProfileRuntimeCache::getInstance()->cacheObjectIDs(\array_unique($userIDs));
152152

153-
$templateName = 'boxUserTrophyList';
154-
if ($this->getBox()->position == 'sidebarLeft' || $this->getBox()->position == 'sidebarRight') {
155-
$templateName = 'boxUserTrophyListSidebar';
156-
}
153+
$templateName = match ($this->getBox()->position) {
154+
'sidebarLeft', 'sidebarRight' => 'boxUserTrophyListSidebar',
155+
default => 'boxUserTrophyList',
156+
};
157157

158158
return WCF::getTPL()->render('wcf', $templateName, [
159159
'boxUserTrophyList' => $this->objectList,

wcfsetup/install/files/lib/system/box/WhoWasOnlineBoxController.class.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ protected function getTemplate()
6464
{
6565
return WCF::getTPL()->render('wcf', 'boxWhoWasOnline', [
6666
'whoWasOnlineList' => $this->users,
67-
'boxPosition' => $this->box->position,
6867
'whoWasOnlineTimeFormat' => DateUtil::TIME_FORMAT,
6968
]);
7069
}

0 commit comments

Comments
 (0)