diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-16 23:32:43 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-16 23:32:43 +1100 |
| commit | 1063372de1e0edc78cd468e3037e53f6985e0b70 (patch) | |
| tree | 0d9ddfeb824b71886daa9a3385140c9acf2588d6 /mod.php | |
| parent | 3b3e6964270006206e442d0a9a7dccaa92fe70dc (diff) | |
Better looking page number list
Diffstat (limited to 'mod.php')
| -rw-r--r-- | mod.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); |
