From 76c67251596a4e3938b965c44a1376cd44c47fbc Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 11 Jun 2014 08:38:46 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8E=E5=8F=B0=E8=AF=84?= =?UTF-8?q?=E5=AE=A1=E9=A6=96=E9=A1=B5=E7=9A=84=E5=88=86=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/ReviewController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index 632e7eb6..49f8345e 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -8,6 +8,7 @@ class Admin_ReviewController extends Zend_Controller_Action $this->view->theme = new Theme(); $this->_helper->layout->setLayout('administry'); $this->view->pageID = "review-".$this->_request->getActionName(); + $this->submd=$this->view->config->sub->metadata; } /* @@ -17,7 +18,7 @@ class Admin_ReviewController extends Zend_Controller_Action function indexAction() { $sql = "select m.id,md.title,u.username,u.realname,m.status from mdstatus m - right join metadata md on md.uuid=m.uuid + right join $this->submd md on md.uuid=m.uuid left join users u on u.id=m.userid order by m.id desc limit 10 "; $re = $this->db->query($sql); @@ -39,7 +40,7 @@ class Admin_ReviewController extends Zend_Controller_Action } $sql = "select m.id,md.title,u.username,u.realname,m.status from mdstatus m - right join metadata md on md.uuid=m.uuid + right join $this->submd md on md.uuid=m.uuid left join users u on u.id=m.userid where u.id='$userid'";