瀏覽代碼

增加页面的默认标题

star7th 10 年之前
父節點
當前提交
5f2d638ae0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Application/Home/Controller/PageController.class.php

+ 1 - 1
Application/Home/Controller/PageController.class.php

@@ -54,7 +54,7 @@ class PageController extends BaseController {
     public function save(){
         $login_user = $this->checkLogin();
         $page_id = I("page_id") ? I("page_id") : 0 ;
-        $page_title = I("page_title");
+        $page_title = I("page_title") ?I("page_title") : '默认页面';
         $page_content = I("page_content");
         $cat_id = I("cat_id")? I("cat_id") : 0;
         $item_id = I("item_id")? I("item_id") : 0;