Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[livejournal] r16328: LJSV-605: LiveJournal locked fix

Committer: esavintcev
LJSV-605: LiveJournal locked fix
U   trunk/bin/upgrading/s2layers/digitalmultiplex/layout.s2
Modified: trunk/bin/upgrading/s2layers/digitalmultiplex/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/digitalmultiplex/layout.s2	2010-03-04 08:46:58 UTC (rev 16327)
+++ trunk/bin/upgrading/s2layers/digitalmultiplex/layout.s2	2010-03-04 08:47:35 UTC (rev 16328)
@@ -1160,10 +1160,12 @@
     {
         var string pages;
         if ($.comment_pages.all_subitems_displayed) {
+if (not $.entry.comments.locked) {
             print_heading_bar_begin();
             $this->print_reply_link({"target" => "topcomment", "linktext" => $*text_post_comment});
             $this->print_reply_container({"target" => "topcomment", "class" => "quickreply"});
             print_heading_bar_end();
+}
         } else {
             $pages = lang_page_of_pages($.comment_pages.current, $.comment_pages.total) + " - ";
             foreach var int i (1 .. $.comment_pages.total) {
@@ -1180,10 +1182,12 @@
             if ($this.multiform_on) { $this->print_multiform_start(); }
             $this->print_comments($.comments);
             if ($.comment_pages.all_subitems_displayed) {
+if (not $.entry.comments.locked) {
                print_heading_bar_begin();
                print "("; $this->print_reply_link({"target" => "bottomcomment", "linktext" => $*text_post_comment}); """)""";
                $this->print_reply_container({"target" => "bottomcomment", "class" => "quickreply"});
                print_heading_bar_end();
+}
             } else {
                 $pages = lang_page_of_pages($.comment_pages.current, $.comment_pages.total) + " - ";
             foreach var int i (1 .. $.comment_pages.total) {

Tags: livejournal, s2, savintsev_egor
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