[geeklog-hg] geeklog: Reverted the part that should not be used COM_showMessa...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Wed May 22 08:16:00 EDT 2013


changeset 9083:2bb8593f4508
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/2bb8593f4508
user: dengen
date: Wed May 22 21:15:08 2013 +0900
description:
Reverted the part that should not be used COM_showMessageText function.

diffstat:

 public_html/submit.php |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 0eab11c26d52 -r 2bb8593f4508 public_html/submit.php
--- a/public_html/submit.php	Tue May 21 23:56:35 2013 +0900
+++ b/public_html/submit.php	Wed May 22 21:15:08 2013 +0900
@@ -70,7 +70,9 @@
             $retval .= SEC_loginRequiredForm();
             return $retval;
         } else {
-            $retval .= COM_showMessageText($LANG12[9], $LANG12[19]);
+            $retval .= COM_startBlock($LANG12[19])
+                    . $LANG12[9]
+                    . COM_endBlock();
 
             if ((strlen($type) > 0) && ($type <> 'story')) {
                 $formresult = PLG_showSubmitForm($type);
@@ -105,7 +107,9 @@
     {
         // preview
         $story->loadSubmission();
-        $retval .= COM_showMessageText(STORY_renderArticle($story, 'p'), $LANG12[32]);
+        $retval .= COM_startBlock($LANG12[32])
+                . STORY_renderArticle ($story, 'p')
+                . COM_endBlock();
     } else {
         $story->initSubmission();
     }



More information about the geeklog-cvs mailing list