forked from leftypol/leftypol
pages.php: pass mod array to overboard
This commit is contained in:
parent
ff9dbe2566
commit
8477f41b52
1 changed files with 3 additions and 3 deletions
|
@ -767,7 +767,7 @@ function mod_board_log($board, $page_no = 1, $hide_names = false, $public = fals
|
|||
}
|
||||
|
||||
function mod_view_catalog($boardName) {
|
||||
global $config;
|
||||
global $config, $mod;
|
||||
require_once($config['dir']['themes'].'/catalog/theme.php');
|
||||
$settings = array();
|
||||
$settings['boards'] = $boardName;
|
||||
|
@ -787,7 +787,7 @@ function mod_view_catalog($boardName) {
|
|||
$settings = array_merge($settings, themeSettings('catalog'));
|
||||
|
||||
$included_boards = array_diff(listBoards(true), $overboard['exclude']);
|
||||
echo $catalog->buildOverboard($overboard['uri'], $settings, $included_boards, true);
|
||||
echo $catalog->buildOverboard($overboard['uri'], $settings, $included_boards, $mod);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -805,7 +805,7 @@ function mod_view_board($boardName, $page_no = 1) {
|
|||
require "templates/themes/overboards/theme.php";
|
||||
|
||||
$overboard = new overboards($overboards_config);
|
||||
echo $overboard->build($settings, true);
|
||||
echo $overboard->build($settings, $mod);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue