(bug 5506) Make Title::isAlwaysKnown() return true for known special pages and files...
authorIlmari Karonen <vyznev@users.mediawiki.org>
Sat, 13 Dec 2008 02:40:53 +0000 (02:40 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Sat, 13 Dec 2008 02:40:53 +0000 (02:40 +0000)
commit550f93f0a1fcc03977e9b9361303fcf8a6647e7b
treee300fbdccb87166fd19fa03bb605702d2377605d
parent76a621bc7a6df1229ee0e616cc103e2b96e17e19
(bug 5506) Make Title::isAlwaysKnown() return true for known special pages and files in foreign repos.

Besides fixing the display of the latter in logs, edit summaries and other places relying on Linker::link(),
the change should allow considerable simplification (not included in this commit) of that function, as
well as of several related functions e.g. in the Parser and Skin classes.  To that end, I've also introduced
a new function Title::isKnown() to wrap the common condition "$title->exists() || $title->isAlwaysKnown()",
and have clarified the roles of the three methods.
RELEASE-NOTES
includes/Title.php