forked from leftypol/leftypol
pages.php: use context to fetch config in mod_view_catalog
This commit is contained in:
parent
06e622fc99
commit
0af5185dd9
1 changed files with 2 additions and 1 deletions
|
@ -765,7 +765,8 @@ function mod_board_log(Context $ctx, $board, $page_no = 1, $hide_names = false,
|
||||||
}
|
}
|
||||||
|
|
||||||
function mod_view_catalog(Context $ctx, $boardName) {
|
function mod_view_catalog(Context $ctx, $boardName) {
|
||||||
global $config;
|
$config = $ctx->get('config');
|
||||||
|
|
||||||
require_once($config['dir']['themes'].'/catalog/theme.php');
|
require_once($config['dir']['themes'].'/catalog/theme.php');
|
||||||
$settings = [];
|
$settings = [];
|
||||||
$settings['boards'] = $boardName;
|
$settings['boards'] = $boardName;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue