Efficiency fix: don't call Title::isRedirect() on titles known not to exist; eliminates a lot of LinkCache::addLinkObj() queries for titles fed to Linker::makeBrokenLinkObj()
This commit is contained in:
parent
c2e0ebb590
commit
4706355c07
1 changed files with 1 additions and 1 deletions
|
|
@ -275,7 +275,7 @@ class Linker {
|
|||
}
|
||||
|
||||
# Note that redirects never count as stubs here.
|
||||
if ( $target->isRedirect() ) {
|
||||
if ( !in_array( 'broken', $options ) && $target->isRedirect() ) {
|
||||
$classes[] = 'mw-redirect';
|
||||
} elseif( $target->isContentPage() ) {
|
||||
# Check for stub.
|
||||
|
|
|
|||
Loading…
Reference in a new issue