Fix mod_view_board for ukko / overboard theme / extension. Add support for boards_alias to mod_view_board and initial preliminary support to markup for crossboard citations
This commit is contained in:
parent
be28bdff8d
commit
47a45da7a7
@ -2073,7 +2073,14 @@ function markup(&$body, $track_cites = false, $op = false) {
|
|||||||
|
|
||||||
if ($board['uri'] != $_board) {
|
if ($board['uri'] != $_board) {
|
||||||
if (!openBoard($_board))
|
if (!openBoard($_board))
|
||||||
|
{
|
||||||
|
if (in_array($_board,array_keys($config['boards_alias']))){
|
||||||
|
$_board = $config['boards_alias'][$_board];
|
||||||
|
openBoard($_board);
|
||||||
|
}
|
||||||
|
|
||||||
continue; // Unknown board
|
continue; // Unknown board
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($clauses)) {
|
if (!empty($clauses)) {
|
||||||
|
@ -756,7 +756,14 @@ function mod_view_board($boardName, $page_no = 1) {
|
|||||||
$overboard->settings['exclude'] = $config['overboards'][$boardName]['exclude'];
|
$overboard->settings['exclude'] = $config['overboards'][$boardName]['exclude'];
|
||||||
|
|
||||||
echo $overboard->build($mod);
|
echo $overboard->build($mod);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
elseif (in_array($boardName,array_keys($config['boards_alias']))){
|
||||||
|
$boardName = $config['boards_alias'][$boardName];
|
||||||
|
openBoard($boardName);
|
||||||
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
error($config['error']['noboard']);
|
error($config['error']['noboard']);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user