forked from GithubBackups/vichan
fixes boardlist in catalog when in mod mode
This commit is contained in:
parent
30e7574649
commit
e42a1b04b1
@ -118,7 +118,7 @@
|
|||||||
$element = Element('themes/catalog/catalog.html', Array(
|
$element = Element('themes/catalog/catalog.html', Array(
|
||||||
'settings' => $settings,
|
'settings' => $settings,
|
||||||
'config' => $config,
|
'config' => $config,
|
||||||
'boardlist' => createBoardlist(),
|
'boardlist' => createBoardlist($mod),
|
||||||
'recent_images' => $recent_images,
|
'recent_images' => $recent_images,
|
||||||
'recent_posts' => $recent_posts,
|
'recent_posts' => $recent_posts,
|
||||||
'stats' => $stats,
|
'stats' => $stats,
|
||||||
@ -130,13 +130,13 @@
|
|||||||
if ($mod) {
|
if ($mod) {
|
||||||
return $element;
|
return $element;
|
||||||
} else {
|
} else {
|
||||||
file_write($config['dir']['home'] . $board_name . '/catalog.html', $element);
|
file_write($config['dir']['home'] . $board_name . '/catalog.html', $element);
|
||||||
|
|
||||||
file_write($config['dir']['home'] . $board_name . '/index.rss', Element('themes/catalog/index.rss', Array(
|
file_write($config['dir']['home'] . $board_name . '/index.rss', Element('themes/catalog/index.rss', Array(
|
||||||
'config' => $config,
|
'config' => $config,
|
||||||
'recent_posts' => $recent_posts,
|
'recent_posts' => $recent_posts,
|
||||||
'board' => $board
|
'board' => $board
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user