1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

Pages on index pages in mod panel

This commit is contained in:
Savetheinternet 2010-12-16 21:28:03 +11:00
parent ae122f9754
commit a261dca0a5

View File

@ -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);