Fix no top bar boards

This commit is contained in:
8chan 2015-04-19 06:08:29 -07:00
parent b59999a05d
commit 31caeed7db

View File

@ -100,7 +100,15 @@ if (count($_GET) == 0) {
file_write("boards.html", $pageHTML);
file_write("boards.json", json_encode($nonAssociativeBoardList));
file_write("boards-top20.json", json_encode(array_splice($nonAssociativeBoardList, 0, 48)));
$topbar = array();
foreach ($boards as $i => $b) {
if (!in_array($b['uri'], $config['no_top_bar_boards'])) {
$topbar[] = $b;
}
}
file_write("boards-top20.json", json_encode(array_splice($topbar, 0, 48)));
}
echo $pageHTML;
echo $pageHTML;