Pages on index pages in mod panel
This commit is contained in:
parent
ae122f9754
commit
a261dca0a5
6
mod.php
6
mod.php
@ -157,15 +157,17 @@
|
|||||||
'mod'=>true
|
'mod'=>true
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
} elseif(preg_match('/^\/' . $regex['board'] . '(' . $regex['index'] . ')?$/', $query, $matches)) {
|
} elseif(preg_match('/^\/' . $regex['board'] . '(' . $regex['index'] . '|' . $regex['page'] . ')?$/', $query, $matches)) {
|
||||||
// Board index
|
// Board index
|
||||||
|
|
||||||
$boardName = $matches[1];
|
$boardName = $matches[1];
|
||||||
|
|
||||||
// Open board
|
// Open board
|
||||||
if(!openBoard($boardName))
|
if(!openBoard($boardName))
|
||||||
error(ERROR_NOBOARD);
|
error(ERROR_NOBOARD);
|
||||||
|
|
||||||
$page = index(1, true);
|
$page = index($matches[2] == FILE_INDEX ? 1 : $matches[2], true);
|
||||||
|
$page['pages'] = getPages(true);
|
||||||
$page['mod'] = true;
|
$page['mod'] = true;
|
||||||
|
|
||||||
echo Element('index.html', $page);
|
echo Element('index.html', $page);
|
||||||
|
Loading…
Reference in New Issue
Block a user