Define excluded boards as array to simplify code

This commit is contained in:
discomrade 2021-06-10 06:53:23 -02:00
parent 8938989efb
commit 7cc76fa0ad
3 changed files with 8 additions and 10 deletions

View file

@ -2,7 +2,7 @@
/*
* When adding a new board, rebuild this theme. If necessary, reconfigure the catalog theme.
* Exclude list is space-separated (e.g. 'exclude' => 'b games music' )
* Exclude list is a PHP array e.g. 'exclude' => array('b', 'games', 'music')
*/
$thread_limit = 30;
@ -12,14 +12,14 @@
'title' => 'Overboard',
'uri' => 'overboard',
'subtitle' => '30 most recently bumped threads',
'exclude' => '',
'exclude' => array(),
'thread_limit' => $thread_limit,
),
array(
'title' => 'SFW Overboard',
'uri' => 'sfwoverboard',
'subtitle' => '30 most recently bumped threads from work-safe boards',
'exclude' => 'b',
'exclude' => array('b'),
'thread_limit' => $thread_limit,
),
);