when $threshold is 0, page_len and page_is_redirect are not present in $s; causes PHP errors and spurious stub display

This commit is contained in:
River Tarnell 2007-05-10 15:36:29 +00:00
parent 9530c06bf6
commit f23877bb9c

View file

@ -4074,9 +4074,10 @@ class Parser
$linkCache->addGoodLinkObj( $s->page_id, $title );
$this->mOutput->addLink( $title, $s->page_id );
$colours[$pdbk] = ( $s->page_len >= $threshold || # always true if $threshold <= 0
$s->page_is_redirect ||
!Namespace::isContent( $s->page_namespace )
$colours[$pdbk] = ( $threshold == 0 || (
$s->page_len >= $threshold || # always true if $threshold <= 0
$s->page_is_redirect ||
!Namespace::isContent( $s->page_namespace ) )
? 1 : 2 );
}
}