ソースを参照

修复分类列表分类为空的BUG

Karson 8 年 前
コミット
438190e79f

+ 0 - 1
application/admin/view/category/add.html

@@ -55,5 +55,4 @@
             <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
             <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
         </div>
         </div>
     </div>
     </div>
-</div>
 </form>
 </form>

+ 0 - 1
application/admin/view/category/edit.html

@@ -55,5 +55,4 @@
             <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
             <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
         </div>
         </div>
     </div>
     </div>
-</div>
 </form>
 </form>

+ 1 - 1
application/common/model/Category.php

@@ -25,7 +25,7 @@ class Category Extends Model
      */
      */
     public static function getTypeList()
     public static function getTypeList()
     {
     {
-        $typelist = config('site', 'categorytype');
+        $typelist = config('site.categorytype');
         return $typelist;
         return $typelist;
     }
     }