diff --git a/module/product/control.php b/module/product/control.php index 47f727331e..d6e97721f4 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -836,9 +836,6 @@ class product extends control $this->loadModel('program'); $this->session->set('productList', $this->app->getURI(true)); - /* Set language items. */ - $this->lang->product->switcherMenu = $this->product->getSwitcher(); - /* Init vars. */ $programs = array(); $productStats = $this->product->getStats($orderBy, '', $browseType, '', 'story'); diff --git a/module/tree/model.php b/module/tree/model.php index ec7bf2c333..62484d994f 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -1404,15 +1404,15 @@ class treeModel extends model $i ++; } - $module = new stdClass(); - $module->root = $rootID; - $module->name = strip_tags(trim($moduleName)); - $module->parent = $parentModuleID; - $module->branch = isset($branches[$moduleID]) ? $branches[$moduleID] : 0; - $module->short = $shorts[$moduleID]; - $module->grade = $grade; - $module->type = $type; - $module->order = $order; + $module = new stdClass(); + $module->root = $rootID; + $module->name = strip_tags(trim($moduleName)); + $module->parent = $parentModuleID; + $module->branch = isset($branches[$moduleID]) ? $branches[$moduleID] : 0; + $module->short = $shorts[$moduleID]; + $module->grade = $grade; + $module->type = $type; + $module->order = $order; $this->dao->insert(TABLE_MODULE)->data($module)->exec(); $moduleID = $this->dao->lastInsertID(); $childPath = $parentPath . "$moduleID,";