Example #1
0
 /**
  * 还原主题
  */
 public function doRevertTopicAction()
 {
     $tids = $this->getInput('tids');
     Wind::import('SRV:forum.srv.operation.PwRevertTopic');
     $srv = new PwRevertTopic($tids, $this->loginUser);
     $srv->execute();
     $this->showMessage('还原成功了');
 }
Example #2
0
 public function doRevertTopicAction()
 {
     $tids = $this->getInput('tids');
     if (!$tids) {
         $this->showError('operate.select');
     }
     Wind::import('SRV:forum.srv.operation.PwRevertTopic');
     $srv = new PwRevertTopic($tids, new PwUserBo($this->adminUser->getUid()));
     $srv->execute();
     $this->showMessage('还原成功了');
 }