mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix #2519 okay, let's fficially support comma-separated categories
This commit is contained in:
parent
5d1c6dd59a
commit
59448bcfb1
1 changed files with 8 additions and 2 deletions
|
|
@ -574,9 +574,15 @@ class BoardView extends Board
|
|||
}
|
||||
|
||||
// if the category is enabled, then get the category
|
||||
if($this->module_info->use_category=='Y')
|
||||
if ($this->module_info->use_category === 'Y')
|
||||
{
|
||||
$args->category_srl = (int)Context::get('category') ?: null;
|
||||
$args->category_srl = (string)Context::get('category') ?: null;
|
||||
|
||||
// Support comma-separated categories #2519
|
||||
if ($args->category_srl)
|
||||
{
|
||||
$args->category_srl = implode(',', array_map('intval', explode(',', $args->category_srl)));
|
||||
}
|
||||
}
|
||||
|
||||
// setup the sort index and order index
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue