forked from leftypol/leftypol
Reimplement overboard
This commit is contained in:
parent
2efd67ef85
commit
ea99ddc6f6
2 changed files with 119 additions and 8 deletions
|
@ -763,14 +763,19 @@ function mod_view_catalog($boardName) {
|
|||
$settings['title'] = 'Catalog';
|
||||
$settings['use_tooltipster'] = true;
|
||||
$catalog = new Catalog($settings);
|
||||
echo $catalog->build($boardName, true);
|
||||
|
||||
if (openBoard($boardName)) {
|
||||
echo $catalog->build($boardName, true);
|
||||
} else {
|
||||
error("The overboard(s) mod catalog hasn't been implemented yet");
|
||||
}
|
||||
}
|
||||
|
||||
function mod_view_board($boardName, $page_no = 1) {
|
||||
global $config, $mod;
|
||||
|
||||
if (!openBoard($boardName)){
|
||||
if (in_array($boardName,array_keys($config['overboards']))){
|
||||
if (in_array($boardName, array_keys($config['overboards']))){
|
||||
$type = $config['overboards'][$boardName]['type'];
|
||||
require_once("templates/themes/$type/theme.php");
|
||||
global $mod;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue