From eed026361caafc2c771e5c32c9fd0fbcf71a897f Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Wed, 4 Dec 2024 07:40:27 +0000 Subject: [PATCH] * [story#69837,0.5h] add preview post. --- module/doc/control.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/doc/control.php b/module/doc/control.php index 512371ba6c..cfaeee1a61 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -53,6 +53,14 @@ class doc extends control */ public function zentaoList(string $type) { + $this->view->cols = array(); + $this->view->data = array(); + if(!empty($_POST)) + { + $funcName = "preview$type"; + if(method_exists($this->docZen, $funcName)) $this->docZen->$funcName(); + } + $this->view->title = sprintf($this->lang->doc->insertTitle, $this->lang->doc->zentaoList[$type]); $this->view->type = $type; $this->display();