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

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

Committer: mchervonniy
LJSUP-8123: statement spam counter
U   trunk/bin/upgrading/s2layers/classic/layout.s2
U   trunk/bin/upgrading/s2layers/cleansimple/layout.s2
Modified: trunk/bin/upgrading/s2layers/classic/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/classic/layout.s2	2011-03-18 08:07:51 UTC (rev 18627)
+++ trunk/bin/upgrading/s2layers/classic/layout.s2	2011-03-18 08:20:49 UTC (rev 18628)
@@ -768,7 +768,7 @@
         if ($.show_postlink) {
             $this->print_postlink();
         }
-        if ($p.view == "entry" and $.read_spam_url != "") {
+        if ($p.view == "entry" and $.spam_counter > 0 and $.read_spam_url != "") {
             print safe "$*text_btwn_comments";
             $this->print_spamlink();
         }

Modified: trunk/bin/upgrading/s2layers/cleansimple/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/cleansimple/layout.s2	2011-03-18 08:07:51 UTC (rev 18627)
+++ trunk/bin/upgrading/s2layers/cleansimple/layout.s2	2011-03-18 08:20:49 UTC (rev 18628)
@@ -852,7 +852,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");
         } 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