Custom links in the board list

This commit is contained in:
Savetheinternet
2011-03-17 23:49:28 +11:00
parent 08c3edecc1
commit fe9a8a1074
2 changed files with 8 additions and 3 deletions

View File

@@ -27,7 +27,11 @@
if(is_array($board))
$body .= ' [' . doBoardListPart($board, $root) . '] ';
else {
$body .= ' <a href="' . $root . $board . '/' . $config['file_index'] . '">' . $board . '</a> /';
if(($key = array_search($board, $list)) && gettype($key) == 'string') {
$body .= ' <a href="' . $board . '">' . $key . '</a> /';
} else {
$body .= ' <a href="' . $root . $board . '/' . $config['file_index'] . '">' . $board . '</a> /';
}
}
}
$body = preg_replace('/\/$/', '', $body);