ssafronova (ssafronova) wrote in changelog,
ssafronova
ssafronova
changelog

[livejournal] r18548: LJSV-1475: After posting a screened comm...

Committer: ssafronova
LJSV-1475: After posting a screened comment, user is showed the wrong text.
U   trunk/htdocs/talkpost_do.bml
Modified: trunk/htdocs/talkpost_do.bml
===================================================================
--- trunk/htdocs/talkpost_do.bml	2011-03-15 04:15:02 UTC (rev 18547)
+++ trunk/htdocs/talkpost_do.bml	2011-03-15 08:28:20 UTC (rev 18548)
@@ -296,7 +296,7 @@
     }
 
     my $ret = "";
-    $ret .= "<?h1 $ML{'.success.title'} h1?>";
+    $ret .= "<h1>$ML{'.success.title'}</h1>";
 
     my $mlcode;
     if ($comment->{state} eq 'A') {
@@ -319,19 +319,20 @@
         }
     }
 
-    $ret .= "<?p " . BML::ml($mlcode, {'aopts' => "href='$commentlink'"}) . " p?>";
+    $ret .= "<p> " . BML::ml($mlcode, {'aopts' => "href='$commentlink'"}) . " </p>";
 
     # did this comment unscreen its parent?
     if ($wasscreened and $parent->{state} ne 'S') {
-        $ret .= "<?p $ML{'.success.unscreened'} p?>";
+        $ret .= "<p> $ML{'.success.unscreened'} </p>";
     }
 
     if ($init->{didlogin}) {
-        $ret .= "<?p $ML{'.success.loggedin'} p?>";
+        $ret .= "<p> $ML{'.success.loggedin'} </p>";
     }
 
     # Sucessful!
     $title = $ML{'.title'};
+    return $ret;
 
     }; # end $render_body
 

Tags: bml, livejournal, ssafronova
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments