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

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

Committer: mchervonniy
LJSUP-8123: statement spam counter
U   trunk/bin/upgrading/s2layers/component/layout.s2
U   trunk/bin/upgrading/s2layers/cuteness/layout.s2
Modified: trunk/bin/upgrading/s2layers/component/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/component/layout.s2	2011-03-18 08:21:30 UTC (rev 10259)
+++ trunk/bin/upgrading/s2layers/component/layout.s2	2011-03-18 08:23:37 UTC (rev 10260)
@@ -2211,7 +2211,7 @@
                             $e.comments->print();
                             $p->print_reply_container({"target" => "topcomment"});
                             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 = """ or """ + get_plural_phrase($e.comments.spam_counter, "text_read_spam_comments");
                                 } else {

Modified: trunk/bin/upgrading/s2layers/cuteness/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/cuteness/layout.s2	2011-03-18 08:21:30 UTC (rev 10259)
+++ trunk/bin/upgrading/s2layers/cuteness/layout.s2	2011-03-18 08:23:37 UTC (rev 10260)
@@ -1384,7 +1384,7 @@
                 print "<h4>";
                 print safe get_permalink($e.permalink_url);
                     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, 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