diff --git a/website/controller/News.class.php b/website/controller/News.class.php index e8647b9..811f5c1 100644 --- a/website/controller/News.class.php +++ b/website/controller/News.class.php @@ -97,7 +97,7 @@ class Controller_News extends Controller_Abstract } $this->_view['current_tag'] = $requestTag; $this->_view['isAjax'] = $this->_request->isAjax(); - $this->_view['total'] = $total; + $this->_view['pageTotal'] = $total; $this->_view['limit'] = $limit; $this->_view['page'] = $page->getCurrentPage(); } diff --git a/website/view/script/news/indexmobile.php b/website/view/script/news/indexmobile.php index b56f39e..75ca757 100644 --- a/website/view/script/news/indexmobile.php +++ b/website/view/script/news/indexmobile.php @@ -19,7 +19,7 @@ </div> <div class="news-main content-main current"> <div class="news-content"> - <div class="main-layout clearfix" total="<?php echo $this->view->total;?>" page="<?php echo $this->view->page;?>" + <div class="main-layout clearfix" total="<?php echo $this->view->pageTotal;?>" page="<?php echo $this->view->page;?>" total_times="3" current_tag="<?php echo $this->view->current_tag;?>" limit="<?php echo $this->view->limit;?>"> <?php $this->_widget('news_listmobile', array('list'=> $this->view->list));?> </div>