summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-12-16 21:28:03 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2010-12-16 21:28:03 +1100
commita261dca0a5545f11114dddf85c81924b6491604d (patch)
treea47306bfaa47fe2b00c3b6c6b7951e2af7c2cd9f
parentae122f9754f801d201c80511fa5a3174e7f0bdc9 (diff)
Pages on index pages in mod panel
-rw-r--r--mod.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod.php b/mod.php
index ddd58ab4..e6b52060 100644
--- a/mod.php
+++ b/mod.php
@@ -157,15 +157,17 @@
'mod'=>true
)
);
- } elseif(preg_match('/^\/' . $regex['board'] . '(' . $regex['index'] . ')?$/', $query, $matches)) {
+ } elseif(preg_match('/^\/' . $regex['board'] . '(' . $regex['index'] . '|' . $regex['page'] . ')?$/', $query, $matches)) {
// Board index
$boardName = $matches[1];
+
// Open board
if(!openBoard($boardName))
error(ERROR_NOBOARD);
- $page = index(1, true);
+ $page = index($matches[2] == FILE_INDEX ? 1 : $matches[2], true);
+ $page['pages'] = getPages(true);
$page['mod'] = true;
echo Element('index.html', $page);