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

[ljcom] r10245: LJSUP-8126: number of spam comments

Committer: mchervonniy
LJSUP-8126: number of spam comments
U   trunk/bin/upgrading/s2layers/opal/layout.s2
Modified: trunk/bin/upgrading/s2layers/opal/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/opal/layout.s2	2011-03-16 05:18:39 UTC (rev 10244)
+++ trunk/bin/upgrading/s2layers/opal/layout.s2	2011-03-16 05:30:48 UTC (rev 10245)
@@ -1043,11 +1043,11 @@
         $this->print_postlink();
         if ($.count > 0 or $.screened) {
             $this->print_readlink();
-            if ($p.view == "entry") {
+            if ($p.view == "entry" and $.read_spam_url != "") {
                 if ($p.showspam) {
-                    print safe """<a href=\"$.read_spam_url\">&nbsp;&nbsp; $*text_hidespam ($.spam_counter) &nbsp;&nbsp;</a>""";
+                    print safe """<span>&nbsp;&nbsp; """ + get_plural_phrase($.spam_counter, "text_read_spam_comments") + """ &nbsp;&nbsp;</span>""";
                 } else {
-                    print safe """<a href=\"$.read_spam_url\">&nbsp;&nbsp; $*text_showspam ($.spam_counter) &nbsp;&nbsp;</a>""";
+                    print safe """<a href=\"$.read_spam_url\">&nbsp;&nbsp; """ + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """ &nbsp;&nbsp;</a>""";
                 }
             }
         }

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