* [refac] Compatible with one-click installation packages.

This commit is contained in:
tianshujie
2025-10-13 10:49:36 +08:00
parent 387604beee
commit 5e8331cb53
4 changed files with 11 additions and 13 deletions
-11
View File
@@ -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;