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:
parent
9530c06bf6
commit
f23877bb9c
1 changed files with 4 additions and 3 deletions
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue