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

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

Committer: mchervonniy
LJSUP-8123: statement spam counter
U   trunk/bin/upgrading/s2layers/3column/layout.s2
U   trunk/bin/upgrading/s2layers/anovelconundrum/layout.s2
U   trunk/bin/upgrading/s2layers/boxer/layout.s2
Modified: trunk/bin/upgrading/s2layers/3column/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/3column/layout.s2	2011-03-17 11:25:55 UTC (rev 10258)
+++ trunk/bin/upgrading/s2layers/3column/layout.s2	2011-03-18 08:21:30 UTC (rev 10259)
@@ -799,7 +799,7 @@
     $e.comments->print();
 
     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 = """<img src="$*SITEROOT/img/style/3column/spam.png" alt=\"""" + get_plural_phrase($e.comments.spam_counter, "text_read_spam_comments") + """\" title=\"""" + get_plural_phrase($e.comments.spam_counter, "text_read_spam_comments") + """\" />""";
         } else {

Modified: trunk/bin/upgrading/s2layers/anovelconundrum/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/anovelconundrum/layout.s2	2011-03-17 11:25:55 UTC (rev 10258)
+++ trunk/bin/upgrading/s2layers/anovelconundrum/layout.s2	2011-03-18 08:21:30 UTC (rev 10259)
@@ -748,7 +748,7 @@
 
         # spam link
         var string comments_showspam = "";
-        if ($.comments.count > 0 and $.comments.read_spam_url != "") {
+        if ($.comments.spam_counter > 0 and $.comments.read_spam_url != "") {
             if ($p.showspam) {
                 $comments_showspam = get_plural_phrase($.comments.spam_counter, "text_read_spam_comments");
             } else {

Modified: trunk/bin/upgrading/s2layers/boxer/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/boxer/layout.s2	2011-03-17 11:25:55 UTC (rev 10258)
+++ trunk/bin/upgrading/s2layers/boxer/layout.s2	2011-03-18 08:21:30 UTC (rev 10259)
@@ -932,7 +932,7 @@
 
                     # spam link
                     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 = """ <span class="icon"><img src="$*SITEROOT/img/btn_unspam.gif" align="middle" border="0" alt="$*text_hidespam" title=\"""" + get_plural_phrase($e.comments.spam_counter, "text_read_spam_comments") + """\" /></a></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