MessagePreview.php
authorAlan <alan@roojs.com>
Thu, 29 Sep 2022 07:57:05 +0000 (15:57 +0800)
committerAlan <alan@roojs.com>
Thu, 29 Sep 2022 07:57:05 +0000 (15:57 +0800)
MessagePreview.php

index 0794be5..771cf04 100644 (file)
@@ -35,6 +35,8 @@ class Pman_Core_MessagePreview extends Pman
             $this->jerr("invalid id/name");
         }
         
+        $this->showHtml = isset($_REQUEST['_as_html']) ? true : false;
+        
         
         if (isset($_REQUEST['ontable']) && !empty($_REQUEST['onid']) && !empty($_REQUEST['evtype'])) {
             $tn = preg_replace('/[^a-z_]+/i', '', $_REQUEST['ontable']);
@@ -69,7 +71,7 @@ class Pman_Core_MessagePreview extends Pman
         
         $this->msg = $mlq;
 
-        $this->showHtml = isset($_REQUEST['_as_html']) ? true : false;
+        
         
     }