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

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

Committer: mchervonniy
LJSUP-8123: statement spam counter
U   trunk/bin/upgrading/s2layers/flexiblesquares/layout.s2
U   trunk/bin/upgrading/s2layers/gradient/layout.s2
Modified: trunk/bin/upgrading/s2layers/flexiblesquares/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/flexiblesquares/layout.s2	2011-03-18 08:23:37 UTC (rev 10260)
+++ trunk/bin/upgrading/s2layers/flexiblesquares/layout.s2	2011-03-18 08:25:10 UTC (rev 10261)
@@ -2120,7 +2120,7 @@
     }
     
     var string comments_showspam = "";
-    if ($.entry.comments.count > 0 and $.entry.comments.read_spam_url != "") {
+    if ($.entry.comments.spam_counter > 0 and $.entry.comments.read_spam_url != "") {
         if ($p.showspam) {
             $comments_showspam = """<span class="comments-hidespam">""" + get_plural_phrase($.entry.comments.spam_counter, "text_read_spam_comments") + """</span> <span class="emdash">—</span> """;
         } else {

Modified: trunk/bin/upgrading/s2layers/gradient/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/gradient/layout.s2	2011-03-18 08:23:37 UTC (rev 10260)
+++ trunk/bin/upgrading/s2layers/gradient/layout.s2	2011-03-18 08:25:10 UTC (rev 10261)
@@ -1486,7 +1486,7 @@
    }
 
    var string comments_showspam = "";
-   if ($e.comments.count > 0 and $e.comments.read_spam_url != "") {
+   if ($e.comments.spam_counter > 0 and $e.comments.read_spam_url != "") {
       if ($p.showspam) {
          $comments_showspam = get_plural_phrase($e.comments.spam_counter, "text_read_spam_comments") + """</span> $*comment_link_divider """;
       } 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