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

[livejournal] r18633: LJSUP-8123: statement spam counter

Committer: mchervonniy
LJSUP-8123: statement spam counter
U   trunk/bin/upgrading/s2layers/variableflow/layout.s2
Modified: trunk/bin/upgrading/s2layers/variableflow/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/variableflow/layout.s2	2011-03-18 08:28:31 UTC (rev 18632)
+++ trunk/bin/upgrading/s2layers/variableflow/layout.s2	2011-03-18 08:40:35 UTC (rev 18633)
@@ -721,7 +721,7 @@
             print """<li class="entryreadlink">""";
             $this->print_readlink();
             println "</li>";
-            if ($p.view == "entry") {
+            if ($p.view == "entry" and $.spam_counter > 0) {
                 if ($p.showspam) {
                     """<li class="comments-hidespam">""" + get_plural_phrase($.spam_counter, "text_read_spam_comments") + """</li>""";
                 } else {

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