forked from laysense/laysense.cn
Make catalog and article landing pages editable
This commit is contained in:
@@ -581,7 +581,7 @@ class AdminController
|
||||
{
|
||||
$categories = $this->selectedCategories($selected);
|
||||
$limit = filter_var($value, FILTER_VALIDATE_INT, ['options' => ['min_range' => 1, 'max_range' => 30]]);
|
||||
if (!in_array($mode, ['merged', 'tabs', 'network'], true) || !$categories || array_diff($categories, array_keys($available)) || $limit === false) {
|
||||
if (!in_array($mode, ['merged', 'tabs', 'network', 'catalog'], true) || !$categories || array_diff($categories, array_keys($available)) || $limit === false) {
|
||||
throw new RuntimeException('请选择文章分类,并将展示数量设为 1 至 30。');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user