Platonides [Thu, 17 Mar 2011 15:51:19 +0000 (15:51 +0000)]
Add hook InterwikiLoadPrefix
Sam Reed [Thu, 17 Mar 2011 15:18:19 +0000 (15:18 +0000)]
Also remove message as followup to r84133
Sam Reed [Thu, 17 Mar 2011 15:14:09 +0000 (15:14 +0000)]
* (bug 27924) PhpHttpRequest doesn't return response body if HTTP != 200
Apply Bawolffs patch minus the var_dump()'s
Siebrand Mazeland [Thu, 17 Mar 2011 09:05:34 +0000 (09:05 +0000)]
Update output language.
Sam Reed [Wed, 16 Mar 2011 23:49:14 +0000 (23:49 +0000)]
Fix r84131, Installer classes not initialised/in usage, so we can't do this.
Change for hardcoded 5.2.3 as current minimum version
Mark A. Hershberger [Wed, 16 Mar 2011 23:13:38 +0000 (23:13 +0000)]
Fix Bug #28082, Add Hooks to User::addGroup and User::removeGroup
I propose to add two new hooks, one should be called when adding a
group to a user, one when a group is removed. This allows
MediaWiki for example to add/remove groups from a remote
authentication/authorization service.
Adapted provided patch.
Sam Reed [Wed, 16 Mar 2011 22:48:47 +0000 (22:48 +0000)]
Another old version checking thing
Sam Reed [Wed, 16 Mar 2011 22:43:17 +0000 (22:43 +0000)]
Less hardcoding...
Platonides [Wed, 16 Mar 2011 22:42:19 +0000 (22:42 +0000)]
Add a couple of braces and spacing
Sam Reed [Wed, 16 Mar 2011 22:38:17 +0000 (22:38 +0000)]
Kill off some more old version checking stuffs
Raimond Spekking [Wed, 16 Mar 2011 21:03:45 +0000 (21:03 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-17 21:30:00 UTC)
Brian Wolff [Wed, 16 Mar 2011 18:23:04 +0000 (18:23 +0000)]
(follow-up r65035/r65013) The username parameter wasn't preserved when clicking links in Special:Listfiles.
Alexandre Emsenhuber [Wed, 16 Mar 2011 09:05:32 +0000 (09:05 +0000)]
Removed usage of extract() in LinkHolderArray::doVariants()
Antoine Musso [Wed, 16 Mar 2011 07:38:15 +0000 (07:38 +0000)]
Makes LanguageTr uc & lc match parent declaration
Methods were introduced in r84057 which, unfortunatly was tested with
PHP errors disabled :\
Additionally add tests for the full Turkish alphabet based on an article
from Wikipedia http://en.wikipedia.org/wiki/Turkish_alphabet
Sam Reed [Wed, 16 Mar 2011 00:13:10 +0000 (00:13 +0000)]
Revert r83993
Platonides [Tue, 15 Mar 2011 22:22:57 +0000 (22:22 +0000)]
(Bug 28069) MediaWiki fails streaming files when mod_deflate and ob_gzhandler are also set
gzipped content with header: "Content-Encoding: , gzip"
Antoine Musso [Tue, 15 Mar 2011 21:56:54 +0000 (21:56 +0000)]
bug 28040 Turkish: properly handle dotted and dotless i
As mentioned by Bawolff on code review, r83970 only handled case change
of the first character lacking full strings support.
This patch override the uc and lc methods for the Turkish language (tr)
using preg_replace() which know about unicode. Other possible choices
would have been:
- strtr() => outputs garbage
- mbstring => can not know we handle turkish and transform i to I!
I have amended the RELEASE-NOTES to reflect this patch.
Some new tests are added as well to cover the regular functions as
well as the specific Turkish overriding. Result in testdox:
LanguageTr
[x] Change case of first char being dotted and dotless i
[x] Language tr lower casing override
[x] Language tr upper casing override
[x] Upper casing of a string with dotted and dot less i
[x] Lower casing of a string with dotted and dot less i
Raimond Spekking [Tue, 15 Mar 2011 21:06:28 +0000 (21:06 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-15 21:30:00 UTC)
Raimond Spekking [Tue, 15 Mar 2011 19:55:47 +0000 (19:55 +0000)]
Follow-up r83791: Remove uselss leading space
Alexandre Emsenhuber [Tue, 15 Mar 2011 18:35:32 +0000 (18:35 +0000)]
Get ride of extract() calls in RecentChange::getIRCLine()
Alexandre Emsenhuber [Tue, 15 Mar 2011 16:58:06 +0000 (16:58 +0000)]
Update doc: Image:: -> File::
Alexandre Emsenhuber [Tue, 15 Mar 2011 16:47:55 +0000 (16:47 +0000)]
Changed LinkHolderArray::makeHolder() to use Linker::link() instead of Linker::makeBrokenLinkObj() and Linker::makeColouredLinkObj()
Happy-melon [Tue, 15 Mar 2011 15:56:40 +0000 (15:56 +0000)]
Fix notice from TWN, reported in r83786 CR
Happy-melon [Tue, 15 Mar 2011 15:09:49 +0000 (15:09 +0000)]
Accept empty square bracket pairs in external links: example.com?foo[]=bar and [http://www.example.com?foo[]=bar link]. Used for MultiSelect arrays, which feature quite heavily in bugzilla search urls, etc.
Sam Reed [Tue, 15 Mar 2011 12:24:05 +0000 (12:24 +0000)]
Kill the oldtimeout stuff, with minimum PHP being 5.2.3
Sam Reed [Tue, 15 Mar 2011 12:06:40 +0000 (12:06 +0000)]
Fixup some more old version comparison stuff
Sam Reed [Tue, 15 Mar 2011 12:03:14 +0000 (12:03 +0000)]
Fix mention of needing 5.1.X or higher in PHP4 file
Sam Reed [Tue, 15 Mar 2011 12:00:53 +0000 (12:00 +0000)]
After r83879, we're requiring php 5.2.3
Remove < 5.1.7 check and related code
Happy-melon [Tue, 15 Mar 2011 11:20:15 +0000 (11:20 +0000)]
Fix exception on TWN raised in r83855 CR.
Raimond Spekking [Tue, 15 Mar 2011 08:37:23 +0000 (08:37 +0000)]
Follow-up r83909: Use 'parentheses' message for consistency instead of hardcoded []
Raimond Spekking [Tue, 15 Mar 2011 08:16:00 +0000 (08:16 +0000)]
Follow-up r83909: The message key is named 'ipadressedorusername'
Daniel Friesen [Tue, 15 Mar 2011 07:21:44 +0000 (07:21 +0000)]
Fix bug 28053. Just move createacount link stuff out of the ipinheader spot to where it should be.
Neil Kandalgaonkar [Tue, 15 Mar 2011 04:41:15 +0000 (04:41 +0000)]
removing another use of the vertical tab & form feed escapes, which are not available in production php5.2.4
Neil Kandalgaonkar [Tue, 15 Mar 2011 04:37:06 +0000 (04:37 +0000)]
the vertical tab \v and form feed \f escapes are not available in php5.2.4 which is what we run in production. Using equivalent hexadecimal
Marcin Cieślak [Tue, 15 Mar 2011 02:53:00 +0000 (02:53 +0000)]
r83812, r83814: Don't use cl_type at all when paging categorylinks
* Remove cl_type from paging in categorylinks - it's not
really needed there. Although cl_type is in WHERE but not
in ORDER BY clause the worst thing that can happen
is to have a filesort going again through <500 entries
selected by index. Or will FORCE INDEX work anyway?
* Revert schema change, as we don't need cl_type there
anyway (or even if we wanted to compare, it should
work as expected by using INT values against ENUM).
Ryan Kaldari [Tue, 15 Mar 2011 02:03:01 +0000 (02:03 +0000)]
oops, don't delete char before the slash, followup to r83902
Ryan Kaldari [Tue, 15 Mar 2011 01:57:37 +0000 (01:57 +0000)]
keep double slash filter from breaking absolute URLs, fix to r83902
Sam Reed [Tue, 15 Mar 2011 00:34:44 +0000 (00:34 +0000)]
Fix sneaky assignment in conditional
Sam Reed [Mon, 14 Mar 2011 23:44:41 +0000 (23:44 +0000)]
Trim/fix whitespace
Sam Reed [Mon, 14 Mar 2011 23:33:45 +0000 (23:33 +0000)]
* (bug 28034) uploading file to local wiki when file exists on shared repository (commons) gives spurious info in the warning message
Applying patch with one minor addition
Sam Reed [Mon, 14 Mar 2011 23:07:42 +0000 (23:07 +0000)]
More documentation while poking bugs
Happy-melon [Mon, 14 Mar 2011 22:26:37 +0000 (22:26 +0000)]
Follow-up r83909: fix error on TWN
Antoine Musso [Mon, 14 Mar 2011 22:14:39 +0000 (22:14 +0000)]
bug 28040 Turkish: properly lower case 'I' to 'ı' (dotless i)
Turkish has two different i, one with a dot and another without a dot. They
are totally different letters in this language, so we have to override the
ucfirst and lcfirst methods.
See http://en.wikipedia.org/wiki/Dotted_and_dotless_I
Credits to #wikipedia-tr users berm, []LuCkY[] and Emperyan
Raimond Spekking [Mon, 14 Mar 2011 21:28:18 +0000 (21:28 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-14 21:06:00 UTC)
Happy-melon [Mon, 14 Mar 2011 21:10:41 +0000 (21:10 +0000)]
Follow-up r83909, fix errors seen on TWN reported in CR
Derk-Jan Hartman [Mon, 14 Mar 2011 21:08:32 +0000 (21:08 +0000)]
Fix overestimation of max-width when using perrow mode.
Also use const variables to make this more readable.
Fixes bug 27577
Follow up to r77411
Raimond Spekking [Mon, 14 Mar 2011 21:00:28 +0000 (21:00 +0000)]
Fix for r83909: rename the corresponding -summary message. Forgotten to Crtl-S before committing r83960
Raimond Spekking [Mon, 14 Mar 2011 20:46:46 +0000 (20:46 +0000)]
Fix for r83909: Add new messag to avoid lt;blocklist> on Special:SpecialPages
rename the corresponding -summary message
Sam Reed [Mon, 14 Mar 2011 20:26:15 +0000 (20:26 +0000)]
Fix artifact of 2 working copies from r83831
Krinkle [Mon, 14 Mar 2011 18:11:19 +0000 (18:11 +0000)]
Follow-up r82310 CR: Adding comment about document ready (since it uses jQuery and interacts with DOM elements)
Roan Kattouw [Mon, 14 Mar 2011 18:04:39 +0000 (18:04 +0000)]
Followup r83891: don't insert a newline before ++ or -- . Patch by Paul Copperman
Marcin Cieślak [Mon, 14 Mar 2011 17:59:31 +0000 (17:59 +0000)]
Followup to r81507: Call to undefined method StandardTemplate::showEmailUser()
Fixes:
PHP Fatal error: Call to undefined method StandardTemplate::showEmailUser() in skins/Standard.php on line 262
Happy-melon [Mon, 14 Mar 2011 16:09:44 +0000 (16:09 +0000)]
Complete the trinity of blocking frontend interfaces by rewriting SpecialIpblocklist:
* Move and rename to SpecialBlockList
* Use an HTMLForm in GET mode for the options form
* Use TablePager to organise the results more nicely
* Standardise the filtration for IPs and IP ranges, so looking at blocks for a range will now also show rangeblocks which contain the range
* General tidy up
Happy-melon [Mon, 14 Mar 2011 15:56:51 +0000 (15:56 +0000)]
Follow-up r83907: some CSS to achieve flat lists
Happy-melon [Mon, 14 Mar 2011 15:50:26 +0000 (15:50 +0000)]
Some tweaks to HTMLMultiSelect form to make it play nicely with GET forms, and also to allow a 'flat list' of options
Roan Kattouw [Mon, 14 Mar 2011 15:16:43 +0000 (15:16 +0000)]
(bug 27564) Timestamp of site module embedded in Squid-cached page HTML
Roan Kattouw [Mon, 14 Mar 2011 15:01:50 +0000 (15:01 +0000)]
(bug 27052) CSSMin generated URLs like foo//../bar in some cases, which apparently resolves to foo/bar rather than foo/../bar or bar . Fixed by eliminating duplicate slashes from the file URL when remapping
Roan Kattouw [Mon, 14 Mar 2011 14:25:23 +0000 (14:25 +0000)]
(bug 27054) Implicit end of statement can break stuff when files are combined. Applied patch by Paul Copperman: add a semicolon to the end of every module when combining; this'll terminate any unterminated final statement, and otherwise create a harmless empty statement.
Roan Kattouw [Mon, 14 Mar 2011 13:55:42 +0000 (13:55 +0000)]
Per Nikerabbit, add some minifier tests for historic failure cases that I had lying around
Roan Kattouw [Mon, 14 Mar 2011 13:24:30 +0000 (13:24 +0000)]
Followup r83885: implement maximum line length and statement termination (each statement on its own line) in JavaScriptMinifier. Also add globals for these things and update minify.php for these new config vars.
Raimond Spekking [Mon, 14 Mar 2011 12:20:34 +0000 (12:20 +0000)]
Fix for r83855: Add new messages to avoid lt;block> <unblock> on Special:SpecialPages
Roan Kattouw [Mon, 14 Mar 2011 11:44:33 +0000 (11:44 +0000)]
(bug 27528) Incorporate Paul Copperman's minifier
Happy-melon [Mon, 14 Mar 2011 11:22:48 +0000 (11:22 +0000)]
Expand r83882.
Sam Reed [Mon, 14 Mar 2011 11:07:58 +0000 (11:07 +0000)]
Followup r83849, fix join to be on indexed user_name
Happy-melon [Mon, 14 Mar 2011 11:07:14 +0000 (11:07 +0000)]
Follow-up r83855: MessagesQqq documentation
Sam Reed [Mon, 14 Mar 2011 11:06:57 +0000 (11:06 +0000)]
Fixup whitespace
Sam Reed [Mon, 14 Mar 2011 11:05:35 +0000 (11:05 +0000)]
Partial revert r83845, use indexed fields for join
Tim Starling [Mon, 14 Mar 2011 10:42:07 +0000 (10:42 +0000)]
Require at least PHP 5.2.3. There's not much point increasing the minimum to 5.2.0, as I argued at lists.wikimedia.org/pipermail/wikitech-l/2010-November/050138.html . But requiring 5.2.3 is a significant win. Updates r83217.
Roan Kattouw [Mon, 14 Mar 2011 10:27:24 +0000 (10:27 +0000)]
Fix r83140: 'ObjectCache::newAnything' is not a valid callback, use array( 'ObjectCache', 'newAnything' ) . Apparently this explodes in some versions of PHP but not in others
Roan Kattouw [Mon, 14 Mar 2011 10:03:07 +0000 (10:03 +0000)]
Revert r67661 (change Title::makeTitle(NS_SPECIAL, $foo) to SpecialPage::getTitleFor($foo)), caused bug 27671 (search suggestions no longer list canonical names for special pages). Went with makeTitleSafe() instead of makeTitle() just in case weird things make their way into the special page aliases.
Roan Kattouw [Mon, 14 Mar 2011 09:30:56 +0000 (09:30 +0000)]
(bug 27975) Fix r83529 (slave catchup in updateCollation.php) to not try to wait for slaves if there are none. Reporter was getting a permission error for getting the master position on a single-server setup
Tim Starling [Mon, 14 Mar 2011 04:26:52 +0000 (04:26 +0000)]
Revert r79122, causes bug 27891 (old version seen immediately after edit).
Brian Wolff [Mon, 14 Mar 2011 02:19:28 +0000 (02:19 +0000)]
(bug 28020) Moving pages causes the cl_sortkey thats appropriate for one of the categorylinks, to be set for all of them.
But the cl_sortkey_prefix are kept to the right value for the cl_sortkey's that are set to the wrong value, totally messing things up.
End result is: Have a page, with some categories having different sortkeys, move that page, now all the categories have the same
sortkey, but still have their original prefix, so linksupdate things the sortkey is correct. End result is null edits don't fix
the sortkey, nothing but removing and re-adding category will reset sortkey to correct value.
Sam Reed [Mon, 14 Mar 2011 01:04:16 +0000 (01:04 +0000)]
Commit last of my w/c
Documentation, braces, explicit variable definitions
Marcin Cieślak [Sun, 13 Mar 2011 23:12:59 +0000 (23:12 +0000)]
Bug 2557: Sidebar items missing from classic, cologne blue, simple skins
* Simple skin support multiple sidebar items
* Standard (a.k.a. Classic) likes to add "my watchlist" and "my contributions"
links at the bottom of the first sidebar box. It also has no titles for boxes.
* Cologne blue supports multiple sidebar boxes with titles.
Sam Reed [Sun, 13 Mar 2011 23:04:51 +0000 (23:04 +0000)]
* (bug 27585) add pagecount to list=filearchive
Sam Reed [Sun, 13 Mar 2011 22:58:41 +0000 (22:58 +0000)]
* (bug 28031) Add pageCount support to ArchivedFile
Apply my patch
Add documentation to File
Sam Reed [Sun, 13 Mar 2011 22:26:56 +0000 (22:26 +0000)]
Some braces, and also return type documentation
Sam Reed [Sun, 13 Mar 2011 22:23:57 +0000 (22:23 +0000)]
Sam Reed [Sun, 13 Mar 2011 22:12:57 +0000 (22:12 +0000)]
Followup r83856
Per BRYAN (;P) don't use a conditional parameter, just die if miser mode and prefix set
Sam Reed [Sun, 13 Mar 2011 22:02:40 +0000 (22:02 +0000)]
Don't reinvent the wheel in SpecialMIMEsearch.php to "parseMIME", use File::splitMime
Sam Reed [Sun, 13 Mar 2011 21:43:20 +0000 (21:43 +0000)]
* (bug 27020) API: Allow title prefix search of logevents (only when not in miser mode)
Won't work on WMF wiki's as miser mode is enabled, but won't show as an available option either
Happy-melon [Sun, 13 Mar 2011 21:33:52 +0000 (21:33 +0000)]
Further massive rewrite of the blocking frontend: spin out unblocking into a new SpecialUnblock.php. This leaves IPBlockList as, astonishingly enough, a list of blocks... :D
Sam Reed [Sun, 13 Mar 2011 21:33:35 +0000 (21:33 +0000)]
Fix undefined $p from r83797
Sam Reed [Sun, 13 Mar 2011 21:17:37 +0000 (21:17 +0000)]
Documentation
Sam Reed [Sun, 13 Mar 2011 21:12:57 +0000 (21:12 +0000)]
Followup r33162, use $this->pager to fix undefined $pager
Sam Reed [Sun, 13 Mar 2011 19:35:08 +0000 (19:35 +0000)]
Add missing group by from r83849 per Bryan
Sam Reed [Sun, 13 Mar 2011 19:28:44 +0000 (19:28 +0000)]
Followup r83843, r83837, per brian, addOption unconditionally replaces ORDER BY etc, so fix that
Simplify addFields call, remove un-needed array for 1 element
Sam Reed [Sun, 13 Mar 2011 19:07:22 +0000 (19:07 +0000)]
* (bug 26630) Add api for Special:ActiveUsers
Not sure if this would be better having been done as list=activeusers or something...
Meh, done! :P
Antoine Musso [Sun, 13 Mar 2011 18:31:00 +0000 (18:31 +0000)]
setting servername with an IPv6 request must ensure we have both brackets
On lighttpd 1.4.28, the SERVER_NAME CGI variable is truncated at the first
colon. This makes it return an incorrect value for SERVER_NAME when the user
make the request to an IPv6, it outputs something like [2001.
This patch make sure we have either both opening and closing brackets or no
brackets at all (hence the 'xor' boolean check).
+ipv6
Sam Reed [Sun, 13 Mar 2011 18:23:33 +0000 (18:23 +0000)]
Join user table to recentchanges on user id, rather than user_text
Add some documentation
Sam Reed [Sun, 13 Mar 2011 17:59:27 +0000 (17:59 +0000)]
Bug 27341 - Add drto param to list=deletedrevs
Tidy code up a little bit
Sam Reed [Sun, 13 Mar 2011 17:41:47 +0000 (17:41 +0000)]
* (bug 27203) add fato param to list=filearchive
Cleanup some whitespace also
Sam Reed [Sun, 13 Mar 2011 17:36:31 +0000 (17:36 +0000)]
Cleanup/simplify code added to alllinks in r70584
Sam Reed [Sun, 13 Mar 2011 17:28:53 +0000 (17:28 +0000)]
Fixup a couple more hardcoded module prefixes in help
Sam Reed [Sun, 13 Mar 2011 17:26:29 +0000 (17:26 +0000)]
Minor followup to r83814, also fix some other existances
Don't hardcode module prefixes (just incase they're subclassed at somepoint... :) )
Sam Reed [Sun, 13 Mar 2011 17:23:45 +0000 (17:23 +0000)]
* (bug 27342) Add audir param to list=allusers
Sam Reed [Sun, 13 Mar 2011 17:16:07 +0000 (17:16 +0000)]
* (bug 27340) API: Allow listing of "small" categories
Happy-melon [Sun, 13 Mar 2011 17:02:50 +0000 (17:02 +0000)]
Follow-up r83825: fix fatal in API
Sam Reed [Sun, 13 Mar 2011 16:36:51 +0000 (16:36 +0000)]
* (bug 27183) API: Add filter by customisation state for meta=allmessages