* [refac] Compatible with one-click installation packages.
This commit is contained in:
@@ -675,17 +675,6 @@ class weeklyModel extends model
|
||||
public function addBuiltinCategory(int $scopeID): int
|
||||
{
|
||||
/* Set category data. */
|
||||
foreach($this->lang->weekly->builtInCategoryList as $key => $value)
|
||||
{
|
||||
$langData = new stdClass();
|
||||
$langData->lang = 'all';
|
||||
$langData->module = 'weekly';
|
||||
$langData->section = 'categoryList';
|
||||
$langData->key = $key;
|
||||
$langData->value = $value;
|
||||
$this->dao->replace(TABLE_LANG)->data($langData)->exec();
|
||||
}
|
||||
|
||||
$category = new stdClass();
|
||||
$category->root = $scopeID;
|
||||
$category->name = $this->lang->projectCommon;
|
||||
|
||||
Reference in New Issue
Block a user