summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-03-17 23:49:28 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-03-17 23:49:28 +1100
commitfe9a8a1074c7a8aba4a92086a95c92bb20e60af3 (patch)
tree7ac048903e3d0df7d31d31f5392432bb5af6a28d /inc/display.php
parent08c3edecc1c29187e11f3a9214e49c571d0f74a8 (diff)
Custom links in the board list
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/inc/display.php b/inc/display.php
index 7f10a597..086171c4 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -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);