wildcard option ("*") for per-board mods
This commit is contained in:
1 parent
11409bb9d7
commit
eadeb6669e
5 files changed
+63
-45
No files matched your search
+5
-2
@@ -24,8 +24,11 @@
|
||||
|
||||
if(isset($action) && $mod['type'] < $action)
|
||||
return false;
|
||||
|
||||
if(isset($board) && !$config['mod']['skip_per_board'] && !in_array($board, $mod['boards']))
|
||||
|
||||
if(!isset($board))
|
||||
return true;
|
||||
|
||||
if(!$config['mod']['skip_per_board'] && !in_array('*', $mod['boards']) && !in_array($board, $mod['boards']))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user