Committer: gariev
LJSUP-9353: Changing DFP tags on search results pageU 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; }