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'";