forked from leftypol/leftypol
pages.php: define overboards/ukkos board for catalogs
This commit is contained in:
parent
9ccc5e75ba
commit
f3d4dfd654
1 changed files with 5 additions and 1 deletions
|
@ -782,10 +782,14 @@ function mod_view_catalog($boardName) {
|
|||
// What follows if horrendous. I am ashamed of myself. See https://git.leftypol.org/leftypol/leftypol/issues/94
|
||||
else {
|
||||
require "templates/themes/overboards/overboards.php";
|
||||
foreach ($overboards_config as &$overboard) {
|
||||
foreach ($overboards_config as $overboard) {
|
||||
if ($overboard['uri'] === $boardName) {
|
||||
$settings = array_merge($settings, themeSettings('catalog'));
|
||||
|
||||
// Ukkos aren't real boards according to vichan, so we need to define the global $board variable for them.
|
||||
global $board;
|
||||
$board = $overboard;
|
||||
|
||||
$included_boards = array_diff(listBoards(true), $overboard['exclude']);
|
||||
echo $catalog->buildOverboard($overboard['uri'], $settings, $included_boards, $mod);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue