Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[ljcom] r10397: LJSUP-8610: S2 Spam

Committer: esavintcev
LJSUP-8610: S2 Spam
U   trunk/bin/upgrading/s2layers/3column/layout.s2
Modified: trunk/bin/upgrading/s2layers/3column/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/3column/layout.s2	2011-04-18 10:26:41 UTC (rev 10396)
+++ trunk/bin/upgrading/s2layers/3column/layout.s2	2011-04-19 03:52:41 UTC (rev 10397)
@@ -801,9 +801,9 @@
     var string comments_showspam = "";
     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") + """\" />""";
+            $comments_showspam = "";
         } else {
-            $comments_showspam = """<a href="$e.comments.read_spam_url"><img src="$*SITEROOT/img/style/3column/unspam.png" alt=\"""" + get_plural_phrase($e.comments.spam_counter, "text_read_all_spam_comments") + """\" title=\"""" + get_plural_phrase($e.comments.spam_counter, "text_read_all_spam_comments") + """\" /></a>""";
+            $comments_showspam = """<a href="$e.comments.read_spam_url">$e.comments.spam_counter<img src="$*SITEROOT/img/style/3column/spam.gif" alt=\"""" + get_plural_phrase($e.comments.spam_counter, "text_read_all_spam_comments") + """\" title=\"""" + get_plural_phrase($e.comments.spam_counter, "text_read_all_spam_comments") + """\" /></a>""";
         }
     } else {
         $comments_showspam = "";

Tags: ljcom, s2, savintsev_egor
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