Browse Source

对页面历史的存储进行压缩以减少数据库体积

star7th 9 years ago
parent
commit
f296783655
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Application/Home/Controller/PageController.class.php

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

@@ -38,7 +38,7 @@ class PageController extends BaseController {
         if ($page_id > 0 ) {
         if ($page_id > 0 ) {
             if ($page_history_id) {
             if ($page_history_id) {
                 $page = D("PageHistory")->where(" page_history_id = '$page_history_id' ")->find();
                 $page = D("PageHistory")->where(" page_history_id = '$page_history_id' ")->find();
-                $page_content = gzuncompress(base64_decode($page['page_content']); 
+                $page_content = gzuncompress(base64_decode($page['page_content'])); 
                 $page['page_content'] = $page_content ? $page_content : $page['page_content'] ;
                 $page['page_content'] = $page_content ? $page_content : $page['page_content'] ;
             }else{
             }else{
                 $page = D("Page")->where(" page_id = '$page_id' ")->find();
                 $page = D("Page")->where(" page_id = '$page_id' ")->find();