Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[ljcom] r10262: LJSUP-8123: statement spam counter

Committer: mchervonniy
LJSUP-8123: statement spam counter
U   trunk/bin/upgrading/s2layers/nebula/layout.s2
U   trunk/bin/upgrading/s2layers/opal/layout.s2
Modified: trunk/bin/upgrading/s2layers/nebula/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/nebula/layout.s2	2011-03-18 08:25:10 UTC (rev 10261)
+++ trunk/bin/upgrading/s2layers/nebula/layout.s2	2011-03-18 08:26:53 UTC (rev 10262)
@@ -1529,7 +1529,7 @@
     }
     if ( $.count > 0 or $.screened and $p.view != "entry") {
         $this->print_readlink();
-        if ($p.view == "entry" and $.read_spam_url != "") {
+        if ($p.view == "entry" and $.spam_counter > 0 and $.read_spam_url != "") {
             if ($p.showspam) {
                 print safe """$link_separator""" + get_plural_phrase($.spam_counter, "text_read_spam_comments");
             } else {

Modified: trunk/bin/upgrading/s2layers/opal/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/opal/layout.s2	2011-03-18 08:25:10 UTC (rev 10261)
+++ trunk/bin/upgrading/s2layers/opal/layout.s2	2011-03-18 08:26:53 UTC (rev 10262)
@@ -1043,7 +1043,7 @@
         $this->print_postlink();
         if ($.count > 0 or $.screened) {
             $this->print_readlink();
-            if ($p.view == "entry" and $.read_spam_url != "") {
+            if ($p.view == "entry" and $.spam_counter > 0 and $.read_spam_url != "") {
                 if ($p.showspam) {
                     print safe """<span>&nbsp;&nbsp; """ + get_plural_phrase($.spam_counter, "text_read_spam_comments") + """ &nbsp;&nbsp;</span>""";
                 } else {

Tags: fiskus_boulder, ljcom, s2
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