Fix bug 14267 by adding support for a MediaWiki:Mainpage-nstab.
authorDaniel Friesen <dantman@users.mediawiki.org>
Fri, 14 Jan 2011 08:32:10 +0000 (08:32 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Fri, 14 Jan 2011 08:32:10 +0000 (08:32 +0000)
commit2f933fedbaba602b04de928035cc86639d6c8531
tree68d745550a982213f62fb7f6609a201038dfd019
parentabe4a1b3b5ac191c368e5448f6ee37be8f2cc0cd
Fix bug 14267 by adding support for a MediaWiki:Mainpage-nstab.
Additionally, *cough* *cough*:
* Add a Title::isMainPage helper for the fairly common $title->equals( Title::newMainPage() ); test.
* Update wfMessageFallback to also accept an array of message keys instead of requiring them listed as arguments to the function.
* Move the bulk of wfMessageFallback code into Message.php instead of leaving it in GlobalFunctions.php
* Change the wfMessageFallback implementation so that the Message class handles the fallbacks themselves eliminating any side effects caused by the fact that wfEmptyMsg always used usedb=false, language=userlang when one might actually use a different language or usedb setting in the message object that actually returned the text (this may be considered a wfEmptyMsg regression in 1.18).
* Make blank "" message contents fallback like nonexistant messages do.
* Re use the new tabAction array handling used to support mainpage-nstab in the talk and view tabs instead of making wfEmptyMsg calls directly in SkinTemplate.
RELEASE-NOTES
includes/GlobalFunctions.php
includes/Message.php
includes/SkinTemplate.php
includes/Title.php