lhc/web/wiklou.git
13 years agoFix bug in mw.Map + fix bug 26801 + wrapper mediawiki.special.upload.js
Krinkle [Wed, 19 Jan 2011 16:26:31 +0000 (16:26 +0000)]
Fix bug in mw.Map + fix bug 26801 + wrapper mediawiki.special.upload.js
* Map.prototype.exists was checking the type of the wrong variable. Fixed now, checking multiple at once is now possible (as documented)
* bug 26801: No references to legacy globals, use mw.config everywhere in core (grep search for 'wg' in /resources returned only
* Addressed some JS Lint warnings (combining var statements, faster and less code);
* Removed trailing tabs and spaces

13 years agoUse text_pattern_ops for page_title, as some code uses 'anchor%' matching.
Greg Sabino Mullane [Wed, 19 Jan 2011 16:14:37 +0000 (16:14 +0000)]
Use text_pattern_ops for page_title, as some code uses 'anchor%' matching.

13 years ago(follow-up r66913) Per CR, make the editsummary length checker use jQuery/RL fanciness.
Brian Wolff [Wed, 19 Jan 2011 03:59:11 +0000 (03:59 +0000)]
(follow-up r66913) Per CR, make the editsummary length checker use jQuery/RL fanciness.

The js was tested in firefox 3.0.6, IE6, some oldish version of Opera, Konqourer, and Chrome.
(Of course in IE6, the rest of mediawiki fell on its face, but the js added here worked).

13 years agoWar on varchar. Changed all occurrences of varchar(N) and varchar(N) binary to varbin...
Roan Kattouw [Wed, 19 Jan 2011 01:11:21 +0000 (01:11 +0000)]
War on varchar. Changed all occurrences of varchar(N) and varchar(N) binary to varbinary(N). varchars cause problems ("Invalid mix of collations" errors) on MySQL databases with certain configs, most notably the default MySQL config

13 years agoRevert r80544 -- need to handle the case in which there is an error
Andrew Garrett [Wed, 19 Jan 2011 01:10:53 +0000 (01:10 +0000)]
Revert r80544 -- need to handle the case in which there is an error

13 years agoFix typo in r80433
Roan Kattouw [Wed, 19 Jan 2011 01:07:53 +0000 (01:07 +0000)]
Fix typo in r80433

13 years agoQuick adjustments to the if-block layout in r80381 to make the way the code works...
Andrew Garrett [Wed, 19 Jan 2011 01:03:39 +0000 (01:03 +0000)]
Quick adjustments to the if-block layout in r80381 to make the way the code works clearer

13 years agoDocument a message
Andrew Garrett [Wed, 19 Jan 2011 00:22:56 +0000 (00:22 +0000)]
Document a message

13 years agoVarious fixes for API category changes:
Roan Kattouw [Wed, 19 Jan 2011 00:13:20 +0000 (00:13 +0000)]
Various fixes for API category changes:
* Followup r80326: clarify description of type property
* Fix r80355: need to use addWhereRange() for the static ORDER BY on cl_type as well, to make sure it flips direction when needed (mixed-direction multi-field ORDER BYs are not indexed)
* Followup r80358: use current not previous value for cl_from, and use >= instead of > . This is the way continues are normally done
* Followup r80362: clarify description for sortkeyprefix property

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 18 Jan 2011 21:38:26 +0000 (21:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-18 21:16:00 UTC)

13 years agofollowup r80511: make {{PAGENAMEE}} and friends also call wfEscapeWikiText() (why...
Ilmari Karonen [Tue, 18 Jan 2011 20:15:50 +0000 (20:15 +0000)]
followup r80511: make {{PAGENAMEE}} and friends also call wfEscapeWikiText() (why is the code duplicated, anyway??)

13 years agobug 26781: make wfEscapeWikiText() escape "*", "#", ";" and ":" at the beginning...
Ilmari Karonen [Tue, 18 Jan 2011 19:39:13 +0000 (19:39 +0000)]
bug 26781: make wfEscapeWikiText() escape "*", "#", ";" and ":" at the beginning of the output and after line feeds. Also make escaping of "{", "}" and "=" more thorough and rewrite to use strtr() instead of str_replace() and htmlspecialchars().

13 years agoFix r66267, make hook code consistent with documentation, fix E_NOTICE
Andrew Garrett [Tue, 18 Jan 2011 18:33:31 +0000 (18:33 +0000)]
Fix r66267, make hook code consistent with documentation, fix E_NOTICE

13 years agoAdd jquery.form.js, from http://jquery.malsup.com/form/#download
Andrew Garrett [Tue, 18 Jan 2011 18:25:42 +0000 (18:25 +0000)]
Add jquery.form.js, from jquery.malsup.com/form/#download

13 years agoThis override is no longer needed.
Krinkle [Tue, 18 Jan 2011 15:33:33 +0000 (15:33 +0000)]
This override is no longer needed.
Tables in <div class="toccolours"> or in other places no longer force a white background which was only added to avoid underlines from <h2> headings from  shining through (which is no longer the case since bug 26449 was solved in r79087 and r79091)
* This commit fixes bug 26708

13 years agoSpacing and NULL -> null
Chad Horohoe [Tue, 18 Jan 2011 13:41:25 +0000 (13:41 +0000)]
Spacing and NULL -> null

13 years agoFollow up r77452. Follow mark's suggest to remove getCodeForMessage() and explain...
Philip Tzou [Tue, 18 Jan 2011 07:59:53 +0000 (07:59 +0000)]
Follow up r77452. Follow mark's suggest to remove getCodeForMessage() and explain why use getPreferredVariant() instead of getCode().

13 years agoUse str_replace instead of preg_replace. Follow up of r75769
Derk-Jan Hartman [Mon, 17 Jan 2011 23:16:39 +0000 (23:16 +0000)]
Use str_replace instead of preg_replace. Follow up of r75769

13 years agoFollow up r80461. In some cases the closing tags for internal tags were not recognised.
Platonides [Mon, 17 Jan 2011 23:12:07 +0000 (23:12 +0000)]
Follow up r80461. In some cases the closing tags for internal tags were not recognised.

13 years agoFollowup r80034. Make sure that $rules actually exists, otherwise we might generate...
Derk-Jan Hartman [Mon, 17 Jan 2011 23:05:21 +0000 (23:05 +0000)]
Followup r80034. Make sure that $rules actually exists, otherwise we might generate errors.

13 years agoFollow up r80205 define rename in check-vars and files added in r80443 and r80466.
Platonides [Mon, 17 Jan 2011 21:42:27 +0000 (21:42 +0000)]
Follow up r80205 define rename in check-vars and files added in r80443 and r80466.

13 years agopreprocessDump.php maintenance script.
Platonides [Mon, 17 Jan 2011 21:29:55 +0000 (21:29 +0000)]
preprocessDump.php maintenance script.

13 years agoFollow up r80376. Added missing file FORMAT.
Platonides [Mon, 17 Jan 2011 19:54:44 +0000 (19:54 +0000)]
Follow up r80376. Added missing file FORMAT.
Fixed method call in Preprocessor_Native.php.
Added support for tags containing spaces (r80025), following the same odd order dependant behavior as the php preprocessors.
Extensions shouldn't rely on it. See http://thread.gmane.org/gmane.science.linguistics.wikipedia.technical/51496
As a result of these changes, there is much less worst-case lookahead now.
in_array.{c,h} are now unused.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 17 Jan 2011 19:48:22 +0000 (19:48 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-17 18:14:00 UTC)

13 years agoFollowup to r80435: Forgot the svn add
X! [Mon, 17 Jan 2011 16:43:12 +0000 (16:43 +0000)]
Followup to r80435: Forgot the svn add

13 years ago* Introduced a non-dummy collation for $wgCategoryCollation, namely UCA with default...
Tim Starling [Mon, 17 Jan 2011 14:02:22 +0000 (14:02 +0000)]
* Introduced a non-dummy collation for $wgCategoryCollation, namely UCA with default tables.
* Added a maintenance script which generates a list of first letters. Unified Han are omitted for performance, and because they shouldn't be used as headings anyway. A future collation specific to Chinese would provide the KangXi radicals as "first letters".
* Provided a precomputed list of first letters. Used Unicode 6.0.0 data and ICU 4.2.
* Moved collation functionality from Language to a Collation class hierarchy with factory function. Removed the recently-added methods from Language and updated all callers.
* Changed Title::getCategorySortkey() to separate its parts with a line break instead of a null character. All collations supported by the intl extension ignore the null character, i.e. "ab" == "a\0b". It would have required a lot of hacking to make it work.
* Fixed the uppercase collation to handle non-ASCII characters, redundantly with r80436. I don't think it's necessary to change the collation name as was done there, so I reverted that in the course of my conflict merge. A --force option to updateCollation.php might be nice though.

13 years agoFix broken query in File::getLinksTo()
Tim Starling [Mon, 17 Jan 2011 13:35:16 +0000 (13:35 +0000)]
Fix broken query in File::getLinksTo()

13 years agoChange the default collation from strtoupper to Language::uc, so that non-ascii chara...
Brian Wolff [Mon, 17 Jan 2011 06:27:49 +0000 (06:27 +0000)]
Change the default collation from strtoupper to Language::uc, so that non-ascii characters get to play too.

I know the uppercase thing is just a standby until a real collation function is written. However in the
mean time, i think it'd be really weird for a wiki with $wgCapitalLinks = false to suddenly have
[[a]] and [[A]] sort under the same letter in a category page, but [[Ä]] and [[ä]] sort no where
near each other, even though on a capitalized wiki they would be the same page.

See discussion on r69816.

Also fix an issue with maintenance/updateCollation.php, where php thinks
that 'uppercase' == 0 (?!). I don't really know what the deal with that
is, but using a ! instead of == 0 seems to fix it. (Follow-up r69961)

13 years agoAdd new Hooks class, because $wgHooks globals are evil.
X! [Mon, 17 Jan 2011 03:35:42 +0000 (03:35 +0000)]
Add new Hooks class, because $wgHooks globals are evil.
$wgHooks['EventName'][] = $callback; --> Hooks::register( 'EventName', $callback );
wfRunHooks( 'EventName', array() ); --> Hooks::run( 'EventName', array() );
Tests added to complement change. Backwards compatibility added.

13 years agoMake it so that editintro's included using the editintro url parameter, don't
Brian Wolff [Mon, 17 Jan 2011 03:34:08 +0000 (03:34 +0000)]
Make it so that editintro's included using the editintro url parameter, don't
show <noinclude> sections.

Its quite counter-intuitive that noinclude sections are included. There was a recent
discussion on the Wikinews Water cooler (village pump equivalent) about why interwikis
for such templates were being included on pages using the editintro even though the
interwiki was in a <noinclude> section.

13 years ago(follow-up r70415) Fixes the function that determines if category counts are correct...
Brian Wolff [Mon, 17 Jan 2011 02:27:47 +0000 (02:27 +0000)]
(follow-up r70415) Fixes the function that determines if category counts are correct to consider each
section independantly. Previously, it also partially considered the total of all 3 sections, since
before they were all paged as one unit. Now we page them independantly, so they should be independant.

As an aside, this (when combined with r80432) fixes bug 18663 (__NOGALLERY__ used to cause mediawiki
to think the cat members counts were wrong).

13 years ago(bug 26737; follow-up r70415) Make new category stuff play nice with __NOGALLERY__
Brian Wolff [Mon, 17 Jan 2011 01:16:00 +0000 (01:16 +0000)]
(bug 26737; follow-up r70415) Make new category stuff play nice with __NOGALLERY__

This changes it so non-gallery cat pages with images, put the images in a list (like the
other sections), but in its own section, instead of as part of the pages section like it
used to be.

13 years ago(bug 529, bug 12974) alter behaviour of the table- and template-parser:
Happy-melon [Sun, 16 Jan 2011 23:57:13 +0000 (23:57 +0000)]
(bug 529, bug 12974) alter behaviour of the table- and template-parser:
* Remove the hack from bug 529 which inserts a newline when the template text begins with any block character; this breaks many things in many exciting ways.  I've left it in for now when the text begins with a wikitable, as that markup can't be mistaken for anything else.
* Instead, move the contents of a table cell onto a new line for parsing, so that linestart elements (including nested tables) will parse as normal.

This means that structures like

{|
| {{template-containing-wikilist}}
|}

Will still work, but for the right reason, and structures like

{|
| style="color:{{template-containing-hexcode}}" | Foo
| * Bar
| {|
   | Look at me, I'm nested!
  |}
|}

Will all now start to work.  Structures like

* Foo {{template-containing-wikilist}}

Will now not, but honestly, should they?

13 years agoFix diff output for failed tests on windows, which typically doesn't have a 'diff...
Happy-melon [Sun, 16 Jan 2011 23:43:15 +0000 (23:43 +0000)]
Fix diff output for failed tests on windows, which typically doesn't have a 'diff' command; use 'fc' instead.

13 years agoAdd new hook ArticlePrepareTextForEdit, called when preparing text to be saved.
Robert Leverington [Sun, 16 Jan 2011 21:12:26 +0000 (21:12 +0000)]
Add new hook ArticlePrepareTextForEdit, called when preparing text to be saved.
Add new parser option "PreSaveTransform" that allows the pre-save transformation to be selectively disabled.

13 years agoRemoved unused global
Alexandre Emsenhuber [Sun, 16 Jan 2011 20:31:09 +0000 (20:31 +0000)]
Removed unused global

13 years agoAnother couple of tests. Also passed by the NtPrepro :)
Platonides [Sun, 16 Jan 2011 18:20:44 +0000 (18:20 +0000)]
Another couple of tests. Also passed by the NtPrepro :)

13 years agoPasting lines typo in r80025
Platonides [Sun, 16 Jan 2011 16:41:15 +0000 (16:41 +0000)]
Pasting lines typo in r80025

13 years agoAdd comments with how values are calculated. Follow up of r76111
Derk-Jan Hartman [Sun, 16 Jan 2011 16:32:58 +0000 (16:32 +0000)]
Add comments with how values are calculated. Follow up of r76111

13 years agoMake Special:WhatLinksHere set the related title so that the skin can display page...
Daniel Friesen [Sun, 16 Jan 2011 07:50:10 +0000 (07:50 +0000)]
Make Special:WhatLinksHere set the related title so that the skin can display page tabs in it.

13 years agoFix another bad boolean from r80248.
Daniel Friesen [Sun, 16 Jan 2011 02:29:53 +0000 (02:29 +0000)]
Fix another bad boolean from r80248.

13 years ago(bug 2585) Image pages should send 404 if no image, no shared image and no
Brian Wolff [Sun, 16 Jan 2011 00:43:56 +0000 (00:43 +0000)]
(bug 2585) Image pages should send 404 if no image, no shared image and no
description page (To be consistant with how non-existant article pages act).

13 years ago(bug 26729) Categories that do not have a page, and have no members,
Brian Wolff [Sat, 15 Jan 2011 21:59:13 +0000 (21:59 +0000)]
(bug 26729) Categories that do not have a page, and have no members,
should return 404

Previously, a category returned 404, only if it had no content page,
had no members, and never had any members (aka there was no entry
in the category table for it).

As before, if you're editing the category page, its still considered a 200.

13 years agoAdded wfDeprecated() to Article::insertNewArticle() and Article::updateArticle()...
Alexandre Emsenhuber [Sat, 15 Jan 2011 16:07:49 +0000 (16:07 +0000)]
Added wfDeprecated() to Article::insertNewArticle() and Article::updateArticle(). The last usage of these two methods was removed in r80402.

13 years agoModified EditPage to use Article::doEdit() instead of Article::insertNewArticle(...
Alexandre Emsenhuber [Sat, 15 Jan 2011 15:21:36 +0000 (15:21 +0000)]
Modified EditPage to use Article::doEdit() instead of Article::insertNewArticle() and Article::updateArticle().

The redirect to the page is now done in EditPage::attemptSave() instead of being hidden in EditPage::internalAttemptSave(); this change should not affect anyboby, the only other call to internalAttemptSave() is in ApiEditPage.php where it's not used.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 15 Jan 2011 15:17:51 +0000 (15:17 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-15 14:56:00 UTC)

13 years agoSome cleanup to this horrible piece of code
Niklas Laxström [Sat, 15 Jan 2011 14:45:40 +0000 (14:45 +0000)]
Some cleanup to this horrible piece of code

13 years agoDo the title construction in a smarter way. Linker can now add mw-redirect class...
Niklas Laxström [Sat, 15 Jan 2011 13:13:29 +0000 (13:13 +0000)]
Do the title construction in a smarter way. Linker can now add mw-redirect class to links. Kept the old div wrapper for compatibility.

13 years agoFix mistake in r80248 and restructure a bit
Niklas Laxström [Sat, 15 Jan 2011 12:46:37 +0000 (12:46 +0000)]
Fix mistake in r80248 and restructure a bit

13 years agoAdd width parameter to Special:Filepath to allow getting the file path of a thumbnail...
Roan Kattouw [Sat, 15 Jan 2011 11:20:24 +0000 (11:20 +0000)]
Add width parameter to Special:Filepath to allow getting the file path of a thumbnail. Requested by Krinkle for his Wordpress plugin (PhotoCommons)

13 years agoAdd preprocessing tests
Platonides [Sat, 15 Jan 2011 08:35:56 +0000 (08:35 +0000)]
Add preprocessing tests

13 years agoFix spaes from r80362
Sam Reed [Sat, 15 Jan 2011 00:50:48 +0000 (00:50 +0000)]
Fix spaes from r80362

13 years ago* (bug 24650) Fix API to work with categorylinks changes
Sam Reed [Sat, 15 Jan 2011 00:13:48 +0000 (00:13 +0000)]
* (bug 24650) Fix API to work with categorylinks changes

Just RELEASE-NOTES

13 years agoLast bits of bug 24650 Fix API to work with categorylinks changes
Sam Reed [Sat, 15 Jan 2011 00:10:57 +0000 (00:10 +0000)]
Last bits of bug 24650 Fix API to work with categorylinks changes

Allow optional output of cl_sortkey_prefix (will anyone needed it, no idea)

13 years agoMore for bug 24650. Update continue to be usable unique thing
Sam Reed [Sat, 15 Jan 2011 00:00:25 +0000 (00:00 +0000)]
More for bug 24650. Update continue to be usable unique thing

13 years agoBye bye filesorts. Making order by cl_type, and then addWhereRange adds cl_sortkey...
Sam Reed [Fri, 14 Jan 2011 23:45:20 +0000 (23:45 +0000)]
Bye bye filesorts. Making order by cl_type, and then addWhereRange adds cl_sortkey, cl_from to this ORDER BY

13 years agoBleh, didn't press save again (r80350)
Sam Reed [Fri, 14 Jan 2011 23:24:25 +0000 (23:24 +0000)]
Bleh, didn't press save again (r80350)

13 years agoMore query reorganisation, in an attempt to be index friendly
Sam Reed [Fri, 14 Jan 2011 23:20:42 +0000 (23:20 +0000)]
More query reorganisation, in an attempt to be index friendly

13 years agoFix boolean for $editnotice_base message existance check that was messed up in r80248.
Daniel Friesen [Fri, 14 Jan 2011 22:46:08 +0000 (22:46 +0000)]
Fix boolean for $editnotice_base message existance check that was messed up in r80248.
Also switch to using === for '' and '-' comparison like Nikerabbit wanted.

13 years agoFix indenting, rearrange some where statements
Sam Reed [Fri, 14 Jan 2011 22:37:12 +0000 (22:37 +0000)]
Fix indenting, rearrange some where statements

13 years agoAdded ArticleViewFooter hook to allow extensions adding additional items to the foote...
Alexandre Emsenhuber [Fri, 14 Jan 2011 21:54:29 +0000 (21:54 +0000)]
Added ArticleViewFooter hook to allow extensions adding additional items to the footer of normal views

13 years agoStylise Setup.php
Alexandre Emsenhuber [Fri, 14 Jan 2011 21:42:38 +0000 (21:42 +0000)]
Stylise Setup.php

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 14 Jan 2011 21:37:20 +0000 (21:37 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-14 20:51:00 UTC)

13 years agoRemove ancient comment, collapse if, move USE INDEX into if further down doing the...
Sam Reed [Fri, 14 Jan 2011 21:24:42 +0000 (21:24 +0000)]
Remove ancient comment, collapse if, move USE INDEX into if further down doing the exact same

13 years agoFollowup r80324, add type property description
Sam Reed [Fri, 14 Jan 2011 21:15:12 +0000 (21:15 +0000)]
Followup r80324, add type property description

13 years agoStart of bug 24650 Fix API to work with categorylinks changes
Sam Reed [Fri, 14 Jan 2011 21:08:08 +0000 (21:08 +0000)]
Start of bug 24650 Fix API to work with categorylinks changes

Addition of a type field for filtering (default is "all" ie no filter)

Adding of type to props, to allow it to be outputted

13 years agoRemove debugging issue in user preferences
Antoine Musso [Fri, 14 Jan 2011 20:43:30 +0000 (20:43 +0000)]
Remove debugging issue in user preferences

'tototo' message key does not exist that made the message dropped.
Could have used null as a value but it looks nicer to just set
the value.

Per CR on r80281

13 years ago* (bug 26733) Wrap initial table creation in transaction
Sam Reed [Fri, 14 Jan 2011 20:43:14 +0000 (20:43 +0000)]
* (bug 26733) Wrap initial table creation in transaction

13 years agobug 10158 : do not mention allowing others to contact you if $wgEnableUserEmail=false
Antoine Musso [Fri, 14 Jan 2011 16:53:36 +0000 (16:53 +0000)]
bug 10158 : do not mention allowing others to contact you if $wgEnableUserEmail=false

This required to tweak HTMLForm to support an array of message keys
for help message. I could reuse help-message but since this helper
also supports array, I created an additional helper for array of
messages.

To test use variations of $wgEnableUserEmail and $wgEmailConfirmToEdit.

Path adapted from jopiswezggzmw at mailinator dot com

13 years agouse require( RUN_MAINTENANCE_IF_MAIN ) as per r80205
Antoine Musso [Fri, 14 Jan 2011 15:08:41 +0000 (15:08 +0000)]
use require( RUN_MAINTENANCE_IF_MAIN ) as per r80205

fix review on r80269

13 years agolame benchmark of if/elseif/else versus switch/case/default
Antoine Musso [Fri, 14 Jan 2011 14:46:58 +0000 (14:46 +0000)]
lame benchmark of if/elseif/else versus switch/case/default

if is faster :
$ php bench_if_switch.php --count 20000
20000 times: function bench_if_switch->doElseIf() :
   204.64ms (  0.01ms each)
20000 times: function bench_if_switch->doSwitch() :
   272.98ms (  0.01ms each)

13 years agoFix for r80248: undefined variable.
Chad Horohoe [Fri, 14 Jan 2011 13:25:14 +0000 (13:25 +0000)]
Fix for r80248: undefined variable.

13 years agoFix remainder of the accidental ->empty() calls I used when converting wfEmptyMsg...
Daniel Friesen [Fri, 14 Jan 2011 11:36:37 +0000 (11:36 +0000)]
Fix remainder of the accidental ->empty() calls I used when converting wfEmptyMsg into Message::exists() calls.

13 years agofix syntax terror.
Siebrand Mazeland [Fri, 14 Jan 2011 11:14:48 +0000 (11:14 +0000)]
fix syntax terror.

13 years agoImplement Message::isBlank and Message::isDisabled.
Daniel Friesen [Fri, 14 Jan 2011 10:51:05 +0000 (10:51 +0000)]
Implement Message::isBlank and Message::isDisabled.
And while we're at it... update a random assortment of code using wfEmptyMsg to use the new wfMessage class and our exists/isBlank/isDisabled methods.

13 years agoFix r79383, I used Message->plain() under the impression it was the proper replacemen...
Daniel Friesen [Fri, 14 Jan 2011 09:28:34 +0000 (09:28 +0000)]
Fix r79383, I used Message->plain() under the impression it was the proper replacement for wfMsg when Message->text() was actually the correct method to use.

13 years agoFix bug 14267 by adding support for a MediaWiki:Mainpage-nstab.
Daniel Friesen [Fri, 14 Jan 2011 08:32:10 +0000 (08:32 +0000)]
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.

13 years agoFollow-up r80192, tweak docs
Niklas Laxström [Fri, 14 Jan 2011 07:54:28 +0000 (07:54 +0000)]
Follow-up r80192, tweak docs

13 years ago* changed variable list as per comment on r79954 left only wgDBtype
Jure Kajzer [Fri, 14 Jan 2011 07:05:21 +0000 (07:05 +0000)]
* changed variable list as per comment on r79954 left only wgDBtype
* all other variables get set trough ->getGlobalNames
* could somone test this on mysql, postgres and sqlite ... it should work, but to be sure

13 years agoSupport talk page tab messages like MediaWiki:Nstab-user_talk. Like the MediaWiki...
Daniel Friesen [Fri, 14 Jan 2011 02:15:12 +0000 (02:15 +0000)]
Support talk page tab messages like MediaWiki:Nstab-user_talk. Like the MediaWiki:Nstab-main MediaWiki:Nstab-user etc... we already support.

13 years agoFollowup r80205: scripts using commandLine.inc were failing the shouldExecute() check...
Chad Horohoe [Fri, 14 Jan 2011 02:13:30 +0000 (02:13 +0000)]
Followup r80205: scripts using commandLine.inc were failing the shouldExecute() check due to extra require()s.

Scripts using this entry point cannot be included standalone for uses as classes, they will always execute.

But then again, if you're not subclassing Maintenance then why are you bothering to write a class in a command line script?

13 years agoFix incorrect translations.
Siebrand Mazeland [Fri, 14 Jan 2011 01:30:13 +0000 (01:30 +0000)]
Fix incorrect translations.

13 years agoRemoved redundant padding rule added in r80106.
Trevor Parscal [Fri, 14 Jan 2011 00:56:53 +0000 (00:56 +0000)]
Removed redundant padding rule added in r80106.

13 years agoCleaned up some comments that were in the wrong places, missing, or misleading. Added...
Trevor Parscal [Fri, 14 Jan 2011 00:55:36 +0000 (00:55 +0000)]
Cleaned up some comments that were in the wrong places, missing, or misleading. Added more information about the CSS hacks being used for IE6 support. Merged some rules that were needlessly broken up into multiple sections.

13 years agowhitespace clean up in shared.css
Krinkle [Fri, 14 Jan 2011 00:46:02 +0000 (00:46 +0000)]
whitespace clean up in shared.css

13 years agoOops, FF2 doesn't support inline-block display. Restoring that one.
Krinkle [Fri, 14 Jan 2011 00:39:51 +0000 (00:39 +0000)]
Oops, FF2 doesn't support inline-block display. Restoring that one.
FF2 ignores the latter display:inline-block and sticks to the -moz-inline-box
(Follow-up r78232,r 80214)

13 years agoRemoving redundant line (Follow-up r78232)
Krinkle [Fri, 14 Jan 2011 00:34:06 +0000 (00:34 +0000)]
Removing redundant line (Follow-up r78232)
<code>
ul.gallery, li.gallerybox {
display: inline-block;
</code>
the display of ul.gallery is overwritten later.
the display of li.gallery is overwriting an earlier one.

Shouldn't change anything other then having one line less

13 years agoNarrow the <textarea> so it doesn't get pushed below the right navbar
Chad Horohoe [Thu, 13 Jan 2011 23:45:26 +0000 (23:45 +0000)]
Narrow the <textarea> so it doesn't get pushed below the right navbar

13 years agoFollow up r80164. Define explicit direction on content and noflip on image thumbs...
Derk-Jan Hartman [Thu, 13 Jan 2011 23:43:34 +0000 (23:43 +0000)]
Follow up r80164. Define explicit direction on content and noflip on image thumbs. (like vector/screen.css)

13 years agoFix concern raised by Brion in r74108 (but has really existed since the maintenance...
Chad Horohoe [Thu, 13 Jan 2011 22:58:55 +0000 (22:58 +0000)]
Fix concern raised by Brion in r74108 (but has really existed since the maintenance rewrite). Right now, including a maintenance script causes it to execute. This is bad when you want to reuse the particular class but not have it start executing all by itself.

Until now, we relied on setting MW_NO_SETUP which was a) hacky, b) irreversable, and c) likely to be forgotten if you didn't use one of the wrappers like runChild().

Instead, move the freaky magic to doMaintenance and have *it* check if it's in a specific call stack that indicates this is being run from the file scope and should be executed. Rename DO_MAINTENANCE to RUN_MAINTENANCE_IF_MAIN so it's nice and clear what magic happens behind the require_once().

13 years agoMore hyphen consistency, bug 26685
Chad Horohoe [Thu, 13 Jan 2011 22:48:09 +0000 (22:48 +0000)]
More hyphen consistency, bug 26685

13 years agoFix bug 26034; Make the View / Read tab in content_navigation style tabs (skins like...
Daniel Friesen [Thu, 13 Jan 2011 22:42:05 +0000 (22:42 +0000)]
Fix bug 26034; Make the View / Read tab in content_navigation style tabs (skins like Vector) stay selected when on &action=purge.

13 years agoFollowup r80192 which had an unclosed comment causing some php notices resulting...
Daniel Friesen [Thu, 13 Jan 2011 22:20:04 +0000 (22:20 +0000)]
Followup r80192 which had an unclosed comment causing some php notices resulting from hidden var statements.

13 years agoFollow up r75662 and r67090 — use UTF-8 minus instead of HTML entity
Mark A. Hershberger [Thu, 13 Jan 2011 22:09:34 +0000 (22:09 +0000)]
Follow up r75662 and r67090 — use UTF-8 minus instead of HTML entity

13 years agoFixing up spaces to tabs in r80192
Sam Reed [Thu, 13 Jan 2011 22:08:13 +0000 (22:08 +0000)]
Fixing up spaces to tabs in r80192

Removing trailing whitespace

13 years agoFix documentation for the SkinTemplateToolboxEnd hook which has a $sk (QuickTemplate...
Daniel Friesen [Thu, 13 Jan 2011 22:06:48 +0000 (22:06 +0000)]
Fix documentation for the SkinTemplateToolboxEnd hook which has a $sk (QuickTemplate) argument rather than the $tools array it says it has.

13 years agoOutputPage properties documentation
Antoine Musso [Thu, 13 Jan 2011 21:08:59 +0000 (21:08 +0000)]
OutputPage properties documentation

This is following a pair session with Zak Greant on november 12th 2010.
Please review, ammend and commit your changes if you have anything useful
to add.
Please note you will find some humoristics quotes.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 13 Jan 2011 21:04:12 +0000 (21:04 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-13 20:41:00 UTC)

13 years agoFollowup r80122, protected, just incase it's needed..
Sam Reed [Thu, 13 Jan 2011 18:04:30 +0000 (18:04 +0000)]
Followup r80122, protected, just incase it's needed..

13 years agoMark as needing a Database, as noted in r79532 CR.
Platonides [Thu, 13 Jan 2011 17:51:25 +0000 (17:51 +0000)]
Mark as needing a Database, as noted in r79532 CR.
It is needed for calling getServerVersion() to provide dbversion