Improvements for 30871:
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 12 Feb 2008 19:58:12 +0000 (19:58 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 12 Feb 2008 19:58:12 +0000 (19:58 +0000)
commit8bf5159e4d3375093cb95f36c26a8d6bb9a25081
tree58c3b9b3a728b2a09c8c7824139f2237f53fec10
parentff98cdd4f295947ffbb7ef220ac6d2de716bc0ad
Improvements for 30871:
* Use !empty() to avoid notices if $s->page_is_redirect isn't set.
* Enable unconditionally.  This causes some extra queries, but only if
makeLinkObj() is being used, which for typical article links it's not.
(The previous version didn't add page_is_redirect to the parameter even
when it would have caused no extra queries, in two places in
Parser.php.)  If the extra makeLinkObj() queries are a problem, they can
be combined with the existence check query.  Or failing that, it can
just be reverted for that method only, which will still allow the
feature to work with standard in-article links.
includes/Linker.php
includes/Parser.php