Browse Source

fixes

pull/40/head
nonmakina 3 years ago
parent
commit
de83b874ff
  1. 7
      inc/display.php

7
inc/display.php

@ -57,6 +57,7 @@ function doBoardListPart($list, $root, &$boards) {
} }
function createForeignBoardListSection($configKey){ function createForeignBoardListSection($configKey){
global $config;
$body = ''; $body = '';
if (isset($config[$configKey])){ if (isset($config[$configKey])){
@ -69,7 +70,7 @@ function createForeignBoardListSection($configKey){
$body .= ' <a href="' . $fboardurl . '">' . $fboardname . '</a>'; $body .= ' <a href="' . $fboardurl . '">' . $fboardname . '</a>';
// only put slash in between elements // only put slash in between elements
if ($i != count($configKey)) { if ($i != count($config[$configKey])) {
$body .= ' /'; $body .= ' /';
} }
} }
@ -77,7 +78,7 @@ function createForeignBoardListSection($configKey){
$body .= ']</span> '; $body .= ']</span> ';
} }
return body; return $body;
} }
function createBoardlist($mod=false) { function createBoardlist($mod=false) {
@ -92,8 +93,6 @@ function createBoardlist($mod=false) {
} }
$body = ''; $body = '';
$body .= createForeignBoardListSection('prepended_foreign_boards'); $body .= createForeignBoardListSection('prepended_foreign_boards');
$body .= doBoardListPart($config['boards'], $mod?'?/':$config['root'], $boards); $body .= doBoardListPart($config['boards'], $mod?'?/':$config['root'], $boards);
$body .= createForeignBoardListSection('foreign_boards'); $body .= createForeignBoardListSection('foreign_boards');

Loading…
Cancel
Save