Commit graph

38629 commits

Author SHA1 Message Date
Derk-Jan Hartman
a38b853c2f Fix bug 31436.
The collection extension is not array based, which caused an extra seperator to be inserted,
but no content. This was broken in r82487 or before in the SkinLegacy rewrite.
2011-10-09 15:35:47 +00:00
Aaron Schulz
529c5e7cfe FU r99323: spread blocks for edit/move attempts via the API (which uses these functions) 2011-10-09 12:30:13 +00:00
Alexandre Emsenhuber
b6008e9086 * Use the context when building the preferences form descriptor
* Pass the HTMLForm object to the submit callback so that it can have a context and also access to the form itself (see below). This makes Preferences::tryUISubmit() and Prefrences::tryFormSubmit() signatures incompatible. The only extension calling these is EditUser and I will fix in my next commit.
* Added two extension possibilites (for EditUser): PreferencesForm::getExtraSuccessRedirectParameters() to modify the URL parameters when redirecting after successful save and the fourthparameter to Prefrences::getFormObject() to be able to remove some items from the descriptor
* Pass the user being modified to the HTMLForm to use it to save the preferences instead of doing this unconditionally on $wgUser (to remove one hack in EditUser preferences)
2011-10-09 11:43:06 +00:00
Aaron Schulz
4d72d6a31d Document return types 2011-10-09 05:19:11 +00:00
Brian Wolff
8031e6dc4e (bug 31549; follow-up r83563) Do not include old-style from links in nav links on categories.
They can intefere with contradicting pageuntil links which breaks navigation in categories.

Not including release notes since tagging 1.18, and first public release that had bug was 1.18. However bug was present in 1.17wmf1
2011-10-09 03:50:03 +00:00
Aaron Schulz
c0bb3a6e2b * Only spread blocks on page edit/move attempts via spreadAnyEditBlock(). We don't want to spread everytime the user's block status is checked as the user may just be viewing something rather than attempting to do anything. For example, if the 'edit' tab were changed to reflect block status, the autoblocks would trigger by a user just *looking* at the page. An example "in the wild" would be the UI checks in r93246.
* Made spreadBlock() protected, no outside callers.
2011-10-08 20:22:53 +00:00
Derk-Jan Hartman
6a706e93c2 Check if there is a prexisting tfoot, before creating a new one.
Follow up to r98669, though this was a problem that also could surface without tfoot emulation.
2011-10-08 19:28:10 +00:00
John Du Hart
2a6150cda4 Add a method to HTML for getting just the HTML (As opposed to passing it right to Output
Also, if a field is marked as required, it should still be checked to see if it's empty before going to the callback. Don't like that behavior? Don't mark it as required.
2011-10-08 19:13:35 +00:00
Brian Wolff
75c1a9f14b follow-up r99316 - Fix class name in unit test class. 2011-10-08 19:00:24 +00:00
Brian Wolff
aa61882f3e Make partial dates in XMP not have the ommitted fields fulled out to 1's (reported by AVRS on irc).
Basically, in XMP you can specify partial date (for example 2011-04 for april 2011 with no day).
We were extracting that, and fulling out the day to 01 if it wasn't present (My original resoning when writing
the code was that the nice localized date functions need a full date, but that's a pretty poor rationale for displaying
wrong date). This changes it to just display such year-month things as YYYY:MM.
2011-10-08 18:40:00 +00:00
Niklas Laxström
c04ace5435 Part of bug 31503 - Allow gender distinction also for user groups 2011-10-08 14:13:17 +00:00
Derk-Jan Hartman
584205a096 Follow up to r99307, with some inline comment documentation on why these !important are used. 2011-10-08 13:07:07 +00:00
Philip Tzou
f2b4b0acf1 Update Chinese conversion tables. 2011-10-08 13:01:41 +00:00
Derk-Jan Hartman
717c35e2df Add !important to the tablesorter indicator.
Otherwise it is too easy to do <th style="background:red"> and kill the entire indicator.
Fixes bug 31196 and follow up to r98665
2011-10-08 12:59:36 +00:00
Niklas Laxström
48714a4968 Followup r99305 - change tests to match behaviour. Would set globals but restoring them manually is just too laborious 2011-10-08 11:58:01 +00:00
Niklas Laxström
64c31d8f16 Small cleanups to XmlSelect 2011-10-08 11:41:10 +00:00
Philip Tzou
d0a70a9fdc Fix Bug 27643. Update Chinese conversion tables. 2011-10-08 11:30:21 +00:00
Alexandre Emsenhuber
cb31c44903 * Use local context instead of global variables
* Call Linker methods statically
2011-10-08 09:12:42 +00:00
Alexandre Emsenhuber
c7ecb6777d Reorder ResourceLoader hooks alphabetically 2011-10-08 09:07:02 +00:00
Brion Vibber
9e9e35923a Revert r84057, r84080, part of r99074: lc() and uc() custom handling for Turkish breaks case-insensitive matches of special page names and parser function keywords (bug 31490)
Deleted extra bug file as that was updated in r99289
2011-10-08 00:30:50 +00:00
Brion Vibber
9252e92c99 followup r99246: fixes for test cases 2011-10-08 00:27:53 +00:00
Aaron Schulz
73a412607c Fixed getUsablePages() to account for the fact that getPage() can return null 2011-10-08 00:16:31 +00:00
Platonides
924d12407e We don't need anything from the marker. The title is outside. 2011-10-07 21:05:22 +00:00
Platonides
570b984533 Forgot to commit this file in r99250. 2011-10-07 21:00:06 +00:00
Platonides
4d065bb19f Bug 31445: "Section edit links do not show"
Always generate the mw:editsection placeholders.
Remove them if not used.
Update the ParserOutput if fetching from ParserCache
2011-10-07 20:50:10 +00:00
Antoine Musso
9689729cc3 Tests for bug 31490 : turkish magic word with a 'i' are broken :d
The 4 first tests fails and need fixing :-)

Follow up r84057
2011-10-07 20:18:17 +00:00
Raimond Spekking
3472e75a80 Localisation updates for core and extension messages from translatewiki.net 2011-10-07 19:24:23 +00:00
Bryan Tong Minh
2d21957eef Follow-up r84765, use timestampOrNull 2011-10-07 19:11:08 +00:00
Neil Kandalgaonkar
b1f659139b upgrading to jquery 1.6.4 to fix bug #31424 2011-10-07 18:53:16 +00:00
Bryan Tong Minh
11cfbad55c (bug 31487) Don't specify -auto-orient, but specify image rotations ourselves 2011-10-07 18:48:36 +00:00
Bryan Tong Minh
9dcc64bbac Follow-up r99224, fix unit tests. 2011-10-07 18:32:08 +00:00
Bryan Tong Minh
f3fc3c7f43 Follow-up r98430, use dedicated error message for filename too long error. Adds 'filename-toolong' message. 2011-10-07 18:20:55 +00:00
Alexandre Emsenhuber
2b3f7ae7b4 * Use local context instead of global variables, made static function in CreditsAction non-static so that they can use the context
* Added missing Action::msg() method
2011-10-07 17:49:45 +00:00
Max Semenik
646fcb5dbd Follow-up r99211: forgot to revert one file 2011-10-07 14:21:08 +00:00
Max Semenik
95ec650786 Revert r93246: besides the problems pointed out at CR, it also causes bug 31403, wreaking havoc on large wikis 2011-10-07 13:58:16 +00:00
Aaron Schulz
61db0345c5 Reverted r83757, ipaddress msg in used by GlobalBlocking 2011-10-07 05:30:04 +00:00
Aaron Schulz
5846df09d4 Redact IP address when unblocking autoblocks 2011-10-07 00:38:09 +00:00
Aaron Schulz
7ecebdc787 Don't add 'autoblock disabled' flag for IP range blocks 2011-10-06 22:57:32 +00:00
Brion Vibber
8a1b06f5d9 Further followup to r91770: revert the RELEASE-NOTES-1.18 entry (was in the 1.19 file originally) 2011-10-06 22:21:28 +00:00
Brion Vibber
c080f51cd5 * (bug 31352) Fix regression causing relative block times in log display to resolve against current time
Revert r91770, r91786: strtotime() to resolve relative times is unsafe when the base of that relative time might have been days, months, or years ago and isn't provided to the function. :)
2011-10-06 22:20:40 +00:00
Platonides
8c39715cf0 Solve the FIXME set in r99025.
Use $this->mTitle directly at EditPage instead of $this->getContextTitle()
$this->mTitle must be set, as it what was used to set $this->isWrongCaseCssJsPage
2011-10-06 21:43:31 +00:00
Raimond Spekking
a5f5b3a950 Localisation updates for core and extension messages from translatewiki.net 2011-10-06 21:34:11 +00:00
Aaron Schulz
6918f1d62d FU r98405: ObjectFileCache doesn't need to be abstract 2011-10-06 21:13:38 +00:00
Bryan Tong Minh
c18151c38c (bug 29392) Setting the start or end parameter now works with lists blocks, categorymembers, deletedrevs, logevents, protectedtitles, usercontributions and watchlist in Postgres.
Since all those used ApiQueryBase::addWhereRange, added ApiQueryBase::addTimestampWhereRange, which does automagic timestamp conversion. Not tested whether this actually fixes problems in Postgres, but at least the API modules are still functional in SQLite
2011-10-06 20:46:24 +00:00
Raimond Spekking
cd8aa6f4de Fix stupid typo in r99082. Thanks to Niklas for CR 2011-10-06 20:19:23 +00:00
Bryan Tong Minh
504d37d6fc (bug 24781) The API will include an XML namespace if the includexmlnamespace parameter is set.
Partial revert of r88007, which adds the namespace unconditionally, since it breaks stuff as per the bug discussion.
2011-10-06 20:11:44 +00:00
Brion Vibber
7125e3f512 * (bug 31435) Fix raw watchlist edit regression from r84718.
Removed double-escaping of text going into textarea, introduced when refactoring the watchlist editor in r84718.
2011-10-06 18:08:38 +00:00
Rotem Liss
5330746072 Localization update for he. 2011-10-06 17:05:35 +00:00
Max Semenik
8782b86117 Follow-up r68645: back out --email, still not used 2011-10-06 17:00:18 +00:00
Sam Reed
f4a1024111 Followup r99116, didn't notice $lang was used lower down 2011-10-06 16:36:31 +00:00