rythm_of_samba (rithm_of_samba) wrote in changelog,
rythm_of_samba
rithm_of_samba
changelog

[livejournal] r15582: LJSUP-4666 Add link "Post a new comment"...

Committer: nefimenko
LJSUP-4666 Add link "Post a new comment" at the end of page

U   trunk/htdocs/talkread.bml
Modified: trunk/htdocs/talkread.bml
===================================================================
--- trunk/htdocs/talkread.bml	2009-08-04 09:15:02 UTC (rev 15581)
+++ trunk/htdocs/talkread.bml	2009-08-04 09:50:45 UTC (rev 15582)
@@ -840,7 +840,18 @@
          }
 
          $ret .= "<hr /><p class='lesstop' align='center'><b>$readlink";
-         $ret .= "(" . LJ::make_qr_link('bottom', '', $T{'postcomments'}, $posturl) . "</a>)" if $remote;
+	     if ($remote) {
+	         # See if we want to force them to change their password
+	         my $bp = LJ::bad_password_redirect({ 'returl' => 1 });
+	         if ($bp) {
+	             $ret .= "(<a href='$bp'>$T{'replythis'} </a>)";
+	         } else {
+	             $ret .= "(" . LJ::make_qr_link('bottom', '', $T{'postcomments'}, $posturl) . "</a>)";
+	         }
+	     } else {
+	         $ret .= "(<a href='$posturl'>$T{'postcomments'}</a>)";
+	     }
+         #$ret .= "(" . LJ::make_qr_link('bottom', '', $T{'postcomments'}, $posturl) . "</a>)" if $remote;
          $ret .= "</b></p>";
          $ret .= "<div align='center'>" . LJ::make_qr_target('bottom') . "</div>" if $remote;
 

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