From 1063372de1e0edc78cd468e3037e53f6985e0b70 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 16 Feb 2011 23:32:43 +1100 Subject: Better looking page number list --- mod.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod.php') diff --git a/mod.php b/mod.php index 23950f8c..66b7cdef 100644 --- a/mod.php +++ b/mod.php @@ -318,10 +318,14 @@ if(!openBoard($boardName)) error($config['error']['noboard']); - if(!$page = index(empty($matches[2]) || $matches[2] == $config['file_index'] ? 1 : $matches[2], $mod)) { + $page_no = empty($matches[2]) || $matches[2] == $config['file_index'] ? 1 : $matches[2]; + + if(!$page = index($page_no, $mod)) { error($config['error']['404']); } + $page['pages'] = getPages(true); + $page['pages'][$page_no-1]['selected'] = true; $page['mod'] = true; echo Element('index.html', $page); -- cgit v1.3