Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r19583: LJSUP-9353: Changing DFP tags on search ...

Committer: gariev
LJSUP-9353: Changing DFP tags on search results page

U   trunk/cgi-bin/LJ/Entry.pm
U   trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/LJ/Entry.pm
===================================================================
--- trunk/cgi-bin/LJ/Entry.pm	2011-08-03 09:57:12 UTC (rev 19582)
+++ trunk/cgi-bin/LJ/Entry.pm	2011-08-03 11:15:40 UTC (rev 19583)
@@ -1395,6 +1395,7 @@
     return $compressed;
 }
 
+## returns 'yes' if entry is ads-eligible (there are no offensive terms etc), and 'no' otherwise
 sub check_for_negative_terms {
     my $self = shift;
     

Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2011-08-03 09:57:12 UTC (rev 19582)
+++ trunk/cgi-bin/ljlib.pl	2011-08-03 11:15:40 UTC (rev 19583)
@@ -1127,7 +1127,7 @@
     my $notafter = $opts->{'notafter'} + 0 || $LJ::EndOfTime - 1;
 
     my $skip = $opts->{'skip'}+0;
-    my $itemshow = $opts->{'itemshow'}+0;
+    my $itemshow = $opts->{'itemshow'}+0 || 10;
     if ($itemshow > $max_hints) { $itemshow = $max_hints; }
     my $maxskip = $max_hints - $itemshow;
     if ($skip < 0) { $skip = 0; }

Tags: gariev, livejournal, pl, pm
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