lhc/web/wiklou.git
13 years agoReverted r84386; breakage too severe
Aaron Schulz [Sun, 20 Mar 2011 21:30:24 +0000 (21:30 +0000)]
Reverted r84386; breakage too severe

13 years agoMore comments on hash inputs
Aaron Schulz [Sun, 20 Mar 2011 20:50:05 +0000 (20:50 +0000)]
More comments on hash inputs

13 years ago* Added findFileFromKey() function
Aaron Schulz [Sun, 20 Mar 2011 20:34:03 +0000 (20:34 +0000)]
* Added findFileFromKey() function
* Added doc comments to findBySha1()

13 years agoPer CR, remove round() call I accidentally reintroduced in r84401
Roan Kattouw [Sun, 20 Mar 2011 19:53:46 +0000 (19:53 +0000)]
Per CR, remove round() call I accidentally reintroduced in r84401

13 years agoTypo from r54350: Overide > Override
Krinkle [Sun, 20 Mar 2011 19:09:41 +0000 (19:09 +0000)]
Typo from r54350: Overide > Override

13 years agoInstaller: require_once extensions, simple require can cause problems with extensions...
Max Semenik [Sun, 20 Mar 2011 18:47:16 +0000 (18:47 +0000)]
Installer: require_once extensions, simple require can cause problems with extensions implicitly depending on other extensions (e.g. Maps already requires Validator, if user checks Validator, xe gets a fatal).

13 years agoFixed <doclink> broken by r83023
Max Semenik [Sun, 20 Mar 2011 17:54:43 +0000 (17:54 +0000)]
Fixed <doclink> broken by r83023

13 years agoFollow-up r84358 CR: rename 'editusertalk' to 'editownusertalk', private --> protecte...
Happy-melon [Sun, 20 Mar 2011 17:43:17 +0000 (17:43 +0000)]
Follow-up r84358 CR: rename 'editusertalk' to 'editownusertalk', private --> protected, and run stylize.php over Block.php

13 years ago(bug 26939) Installer does not set $wgMetaNamespace
Max Semenik [Sun, 20 Mar 2011 17:36:18 +0000 (17:36 +0000)]
(bug 26939) Installer does not set $wgMetaNamespace

13 years agoAdd Michael Dale to the list of patch contributors
Roan Kattouw [Sun, 20 Mar 2011 17:18:39 +0000 (17:18 +0000)]
Add Michael Dale to the list of patch contributors

13 years ago(bug 26805) Introduce ResourceLoaderGetStartupModules hook to allow extensions to...
Roan Kattouw [Sun, 20 Mar 2011 17:15:51 +0000 (17:15 +0000)]
(bug 26805) Introduce ResourceLoaderGetStartupModules hook to allow extensions to add modules to the startup set (normally this is jQuery and mediawiki). Applied patch by Michael Dale, with minor style tweaks

13 years agoFollowup r84399: remove another round() call
Roan Kattouw [Sun, 20 Mar 2011 17:10:48 +0000 (17:10 +0000)]
Followup r84399: remove another round() call

13 years agoRemove stray round() call, rounding of timestamps was removed some time ago. Thanks...
Roan Kattouw [Sun, 20 Mar 2011 17:08:38 +0000 (17:08 +0000)]
Remove stray round() call, rounding of timestamps was removed some time ago. Thanks to Michael for pointing this one out

13 years ago(bug 27336) Add $wgJobTypesExcludedFromDefaultQueue for job types that aren't suppose...
Roan Kattouw [Sun, 20 Mar 2011 16:52:57 +0000 (16:52 +0000)]
(bug 27336) Add $wgJobTypesExcludedFromDefaultQueue for job types that aren't supposed to be run by 'normal' job runners. Modified patch by Michael Dale

13 years ago(bug 27641) purgeThumbnails should support exclusion of expensive files. Add $wgExclu...
Roan Kattouw [Sun, 20 Mar 2011 16:38:08 +0000 (16:38 +0000)]
(bug 27641) purgeThumbnails should support exclusion of expensive files. Add $wgExcludeFromThumbnailPurge and don't purge thumbnails whose extension is in that array when the files they belong to are purged with action=purge. Committing patch by Michael Dale with small coding style tweaks

13 years agoRevert r83812 (schema change for cl_type enum), no longer needed after r84392. Also...
Roan Kattouw [Sun, 20 Mar 2011 16:30:59 +0000 (16:30 +0000)]
Revert r83812 (schema change for cl_type enum), no longer needed after r84392. Also reverts r83821 (followup to r83812, add /*_*/ )

13 years agoFollow up r84175
Platonides [Sun, 20 Mar 2011 16:29:31 +0000 (16:29 +0000)]
Follow up r84175

13 years agoPer r83812 CR, solve the categorymembers paging problem by doing separate queries...
Roan Kattouw [Sun, 20 Mar 2011 16:25:01 +0000 (16:25 +0000)]
Per r83812 CR, solve the categorymembers paging problem by doing separate queries for each value of cl_type, with some trickery to make paging work. This makes the enum->varchar schema change for cl_type unnecessary, so I'll revert that.

Code was largely copied from Tim's CR comment on r83812 but adapted to deal with the fact that we have to apply the cmcontinue-induced WHERE on cl_sortkey and cl_from only for the first query. Because ApiQueryBase doesn't let us unset or overwrite conditions like these in a nice way, I added an $extraQuery parameter to ApiQueryBase::select() that excepts additional query parameters that are only applied to that query but not stored in the object.

13 years agoMakes wikilinks nicer when possible
Antoine Musso [Sun, 20 Mar 2011 14:57:49 +0000 (14:57 +0000)]
Makes wikilinks nicer when possible

This patch mostly impact Title:getLocalUrl() with two changes:

1) Abstraction:

$wgActionPath related code is now in Title::resolveActionPath(). It now
interprets query parameters using an array which is easier to read than
playing with a regexp and the evil $matches[].

2) Tweaking:

Change the 7 years old (r2621) URL forge:
  "{$wgScript}?title={$dbkey}&{$query}"
  => /w/index.php?title=FOO&q=2

To a nicer
  "str_replace( '$1', $dbkey, $wgArticlePath )"
  => /wiki/FOO?q=2

Additional changes:

* Parser tests were modified to reflect the changes.
* PHPUnit TitleTest amended to test getLocalUrl() (add more!!)
* When using wgActionPaths, makes sure the 'view' action is a sane default

13 years agoIn $.textSelection, treat <input> elements differently from other elements (such...
Roan Kattouw [Sun, 20 Mar 2011 14:48:20 +0000 (14:48 +0000)]
In $.textSelection, treat <input> elements differently from other elements (such as textareas and iframes) in IE, seems to be needed for some reason (oh IE, how I hate you). This fixes a bug causing Narayam's keyboard mappings to not work in <input> elements in IE.

13 years ago* (bug 16288) API: consider making closure status of wikis more clear with meta=siteinfo
Sam Reed [Sun, 20 Mar 2011 13:41:41 +0000 (13:41 +0000)]
* (bug 16288) API: consider making closure status of wikis more clear with meta=siteinfo

Added bug to RELEASE-NOTES, this adds the hook and usage into SiteMatrix

Have I got my & all right? I can never remember

13 years agoAddition of 'APIQuerySiteInfoGeneralInfo' hook for usage in bug 16288 "API: consider...
Sam Reed [Sun, 20 Mar 2011 13:31:22 +0000 (13:31 +0000)]
Addition of 'APIQuerySiteInfoGeneralInfo' hook for usage in bug 16288 "API: consider making closure status of wikis more clear with meta=siteinfo"

13 years agocorrect wfDebug() calls added in r79272 & r79368
Antoine Musso [Sun, 20 Mar 2011 11:39:44 +0000 (11:39 +0000)]
correct wfDebug() calls added in r79272 & r79368

13 years agoFollowup r84361, numerical keys ftw
Sam Reed [Sun, 20 Mar 2011 00:32:28 +0000 (00:32 +0000)]
Followup r84361, numerical keys ftw

13 years agoActually list implicit groups in allusers.
Sam Reed [Sun, 20 Mar 2011 00:23:41 +0000 (00:23 +0000)]
Actually list implicit groups in allusers.

Looks like I might've regressed this in the course of fixing other bugs. Oh well, fixed now

13 years ago* (bug 27469) label implicit groups in list=allusers&auprop=groups/list=users&usprop...
Sam Reed [Sun, 20 Mar 2011 00:19:29 +0000 (00:19 +0000)]
* (bug 27469) label implicit groups in list=allusers&auprop=groups/list=users&usprop=groups

13 years ago* Implement an extensible Block::prevents( <action> ) function to replace the plethor...
Happy-melon [Sat, 19 Mar 2011 23:47:08 +0000 (23:47 +0000)]
* Implement an extensible Block::prevents( <action> ) function to replace the plethora of direct member variable accesses  This pushes the historic *disable*-createaccount-vs-*allow* usertalk-edit wierdness down to the database layer
* Implement accessors for isHardblock() and getRangeStart()/getRangeEnd() in the same fashion.
* Make the corresponding variables private, removing external accessors.  This required updating AbuseFilter with non-B/C code, so I also implemented the rest of the changes I've made to the blocking backend in that extension.
* Move the "get an IP range which encompasses the given IP/range" logic to Block.php; will be needed later... :D

13 years ago* (Bug 14005) editing section 0 of an existing but empty page gives no such section...
Sam Reed [Sat, 19 Mar 2011 23:23:32 +0000 (23:23 +0000)]
* (Bug 14005) editing section 0 of an existing but empty page gives no such section error

Tested, with minor tweak. Also removed now un-needed code

Patch by Harry Burt

13 years ago* (bug 27343) Add parseddescription to list=filearchive
Sam Reed [Sat, 19 Mar 2011 22:54:43 +0000 (22:54 +0000)]
* (bug 27343) Add parseddescription to list=filearchive

13 years agoThis feature never made it into 1.16
Niklas Laxström [Sat, 19 Mar 2011 21:46:45 +0000 (21:46 +0000)]
This feature never made it into 1.16

13 years agoFollow-up r81524: fix fatal when modules are deregistered
Happy-melon [Sat, 19 Mar 2011 21:19:50 +0000 (21:19 +0000)]
Follow-up r81524: fix fatal when modules are deregistered

13 years agoupdate.php: restore compatibility with PHP4 to die gracefully
Max Semenik [Sat, 19 Mar 2011 19:48:29 +0000 (19:48 +0000)]
update.php: restore compatibility with PHP4 to die gracefully

13 years agoMark various internal methods as protected, which have no external calls in core...
Happy-melon [Sat, 19 Mar 2011 17:44:01 +0000 (17:44 +0000)]
Mark various internal methods as protected, which have no external calls in core or extensions.

13 years agoFollow-up r84336: break some long lines
Happy-melon [Sat, 19 Mar 2011 17:36:10 +0000 (17:36 +0000)]
Follow-up r84336: break some long lines

13 years agoBlock::forUpdate() is never called, and doesn't really make much sense in this contex...
Happy-melon [Sat, 19 Mar 2011 17:32:59 +0000 (17:32 +0000)]
Block::forUpdate() is never called, and doesn't really make much sense in this context anyway; remove it and simplify.

13 years agoClarify the behaviour of Block::parseTarget(), and that TYPE_AUTO and TYPE_ID are...
Happy-melon [Sat, 19 Mar 2011 16:50:21 +0000 (16:50 +0000)]
Clarify the behaviour of Block::parseTarget(), and that TYPE_AUTO and TYPE_ID are broadly the same.

13 years agoRemove some insanely ancient (~r4797) unused globals and variables, and make private...
Happy-melon [Sat, 19 Mar 2011 16:41:14 +0000 (16:41 +0000)]
Remove some insanely ancient (~r4797) unused globals and variables, and make private variables actually private (no external calls to worry about)

13 years agoFixed message borkage from r78593
Max Semenik [Sat, 19 Mar 2011 15:27:24 +0000 (15:27 +0000)]
Fixed message borkage from r78593

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 19 Mar 2011 14:46:48 +0000 (14:46 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-19 14:31:00 UTC)

13 years agoFix fatal from r83823
Alexandre Emsenhuber [Sat, 19 Mar 2011 13:00:11 +0000 (13:00 +0000)]
Fix fatal from r83823

13 years agoDon't refuse to do work just because the pool counter server is down. This seemed...
Tim Starling [Sat, 19 Mar 2011 12:55:48 +0000 (12:55 +0000)]
Don't refuse to do work just because the pool counter server is down. This seemed like a good idea at the time, but in practice is rather fragile.

13 years agoPer Hashar, fix for r83673: only accept StubContLang and StubUserLang for stub objects
Alexandre Emsenhuber [Sat, 19 Mar 2011 12:53:56 +0000 (12:53 +0000)]
Per Hashar, fix for r83673: only accept StubContLang and StubUserLang for stub objects

13 years agoLog pool counter errors
Tim Starling [Sat, 19 Mar 2011 12:06:04 +0000 (12:06 +0000)]
Log pool counter errors

13 years agoFixed typo in r84314
Max Semenik [Sat, 19 Mar 2011 11:54:27 +0000 (11:54 +0000)]
Fixed typo in r84314

13 years agoconsitent PHP version in RELEASE-NOTES (PHP 5.2.3)
Antoine Musso [Sat, 19 Mar 2011 11:00:27 +0000 (11:00 +0000)]
consitent PHP version in RELEASE-NOTES (PHP 5.2.3)

Follow up r83879

13 years agoFix for Bug# 17463: New pages log doesn't remove/update item after suppression redirect
Mark A. Hershberger [Sat, 19 Mar 2011 04:24:15 +0000 (04:24 +0000)]
Fix for Bug# 17463: New pages log doesn't remove/update item after suppression redirect

Except for some whitespace changes, this is Baowolff's patch from http://bug-attachment.wikimedia.org/attachment.cgi?id=8312 which I am applying in the spirit of “apologize later”.

Baowolff writes:

    Don't show new page entries in Special:newpage for supressed redirects.

    Patch to remove the new page entry from Special:RecentChange and
    special:newpages, if the new page gets moved with redirect supressed.

    I'm not a 100% sure this is a good idea. This will only suppress the initial
    new page line in the RC (And newpages), and won't supress any other edits to
    the page. Does this behaviour really make sense? (Thats not rhetorical). It
    seems somewhat different from deleting a page, where none of the content is
    relevent, but when you move a page, the edits don't go away, they're just in a
    new title.

    I suppose we could just change the new page entry in the RC to point to the
    other page, but that seems rather wrong too.

    So anyhow, not sure what the right approach is.

13 years agoMissed one instance of Block::infinity() from r84279.
Happy-melon [Fri, 18 Mar 2011 23:29:17 +0000 (23:29 +0000)]
Missed one instance of Block::infinity() from r84279.

13 years agoMove Block::normaliseRange() to IP.php, then reduce it to 4 lines by using the existi...
Happy-melon [Fri, 18 Mar 2011 23:28:23 +0000 (23:28 +0000)]
Move Block::normaliseRange() to IP.php, then reduce it to 4 lines by using the existing functionality in that class.

13 years agoExtract bit depth and color type for PNG images
Bryan Tong Minh [Fri, 18 Mar 2011 23:03:58 +0000 (23:03 +0000)]
Extract bit depth and color type for PNG images

13 years agoFollow-ups to r84258
Happy-melon [Fri, 18 Mar 2011 22:28:39 +0000 (22:28 +0000)]
Follow-ups to r84258

13 years agoAdded hook BitmapHandlerTransform to allow extension to transform a file without...
Bryan Tong Minh [Fri, 18 Mar 2011 22:28:19 +0000 (22:28 +0000)]
Added hook BitmapHandlerTransform to allow extension to transform a file without overriding the entire handler.

13 years agoFollow-up r83658 CR: Undoing addition of second argument, prefix is for identifying...
Krinkle [Fri, 18 Mar 2011 22:22:04 +0000 (22:22 +0000)]
Follow-up r83658 CR: Undoing addition of second argument, prefix is for identifying the source window, not the context within

13 years agoper r83658 CR: mw.log.prefix is for identifying windows, not context. Using string...
Krinkle [Fri, 18 Mar 2011 22:18:06 +0000 (22:18 +0000)]
per r83658 CR: mw.log.prefix is for identifying windows, not context. Using string concat instead

13 years agoper r83658 CR: mw.log.prefix is for identifying windows, not context. Using string...
Krinkle [Fri, 18 Mar 2011 22:16:12 +0000 (22:16 +0000)]
per r83658 CR: mw.log.prefix is for identifying windows, not context. Using string concat instead

13 years agoFollow-ups to r84258.
Happy-melon [Fri, 18 Mar 2011 22:03:31 +0000 (22:03 +0000)]
Follow-ups to r84258.

13 years agoFix fatal Invalid argument supplied for foreach
Sam Reed [Fri, 18 Mar 2011 22:01:42 +0000 (22:01 +0000)]
Fix fatal Invalid argument supplied for foreach

13 years agodebugging statement when starting a phpunit parser test
Antoine Musso [Fri, 18 Mar 2011 21:45:32 +0000 (21:45 +0000)]
debugging statement when starting a phpunit parser test

13 years agoFollow-up r83909, r83825: update special page aliases for all languages.
Happy-melon [Fri, 18 Mar 2011 21:42:39 +0000 (21:42 +0000)]
Follow-up r83909, r83825: update special page aliases for all languages.

13 years agoFix borked r84266.
Happy-melon [Fri, 18 Mar 2011 21:31:11 +0000 (21:31 +0000)]
Fix borked r84266.

13 years agoFollow-up r84249: reimplement isAllowedAny(), and restore isAllowed() to only-accepti...
Happy-melon [Fri, 18 Mar 2011 21:07:05 +0000 (21:07 +0000)]
Follow-up r84249: reimplement isAllowedAny(), and restore isAllowed() to only-accepting-one-parameter mode for the time being.

13 years agoFollowup r83536 to address Jack Phoenix's comments about the bogus w/s “cleanup”
Mark A. Hershberger [Fri, 18 Mar 2011 20:58:12 +0000 (20:58 +0000)]
Followup r83536 to address Jack Phoenix's comments about the bogus w/s “cleanup”

13 years agoImprove query building if's to cater for addition of columns
Sam Reed [Fri, 18 Mar 2011 20:50:40 +0000 (20:50 +0000)]
Improve query building if's to cater for addition of columns

13 years agoApply patch for Bug #27899 Special:NewPages does not handle RevisionDeletion
Mark A. Hershberger [Fri, 18 Mar 2011 20:44:29 +0000 (20:44 +0000)]
Apply patch for Bug #27899 Special:NewPages does not handle RevisionDeletion

This means the hidden comment of a new created page is shown and the hidden
user of a new created page is also shown.

Patch supplied by Jarry1250

13 years agow/s diff. mostly eol w/s and using only tabs of width 4 to indent.
Mark A. Hershberger [Fri, 18 Mar 2011 20:37:11 +0000 (20:37 +0000)]
w/s diff. mostly eol w/s and using only tabs of width 4 to indent.

13 years agoFollowup r84260, normalise API behaviour, and fixup description
Sam Reed [Fri, 18 Mar 2011 20:30:06 +0000 (20:30 +0000)]
Followup r84260, normalise API behaviour, and fixup description

13 years agoFollowup r83862, add notation that page count will be added if appropriate
Sam Reed [Fri, 18 Mar 2011 19:55:34 +0000 (19:55 +0000)]
Followup r83862, add notation that page count will be added if appropriate

13 years agoMore cleanup in Block.php. Push Block::encodeExpiry() and Block::decodeExpiry()...
Happy-melon [Fri, 18 Mar 2011 19:15:56 +0000 (19:15 +0000)]
More cleanup in Block.php.  Push Block::encodeExpiry() and Block::decodeExpiry() deeper into the callstack, to DatabaseBase for encode and Language for decode.  The vast majority of callers of these functions are not handling block expiries, but expiries generally, particularly page protections.

13 years ago* (bug 28104) Namespace for local pages in interwiki backlinks (iwbacklinks)
Sam Reed [Fri, 18 Mar 2011 19:15:33 +0000 (19:15 +0000)]
* (bug 28104) Namespace for local pages in interwiki backlinks (iwbacklinks)
  is missing

13 years agoBacklinkCache: explicit properties visibility
Antoine Musso [Fri, 18 Mar 2011 18:16:38 +0000 (18:16 +0000)]
BacklinkCache: explicit properties visibility

13 years agodocumentation for BacklinkCache class
Antoine Musso [Fri, 18 Mar 2011 18:12:58 +0000 (18:12 +0000)]
documentation for BacklinkCache class

- still need examples
- could use peer review
- no functional changes

13 years agoFirst forays into the swamp of the Block.php backend:
Happy-melon [Fri, 18 Mar 2011 16:35:22 +0000 (16:35 +0000)]
First forays into the swamp of the Block.php backend:
* Move Block::parseExpiryInput() to the frontend SpecialBlock::parseExpiryInput()
* consolidate the several implementations of the MediaWiki:Ipblockoptions parsing into SpecialBlock::getSuggestedDurations()

13 years agoAllow User::isAllowed() to take varargs. "is allowed X or Y" is by far the more...
Happy-melon [Fri, 18 Mar 2011 14:48:21 +0000 (14:48 +0000)]
Allow User::isAllowed() to take varargs.  "is allowed X or Y" is by far the more common multiple permission check in core, so this is now the behaviour of isAllowed( X, Y ); also add isAllowedAll(...) for testing "is allowed X and Y".  Has the nice side effect of adding visibility to a very old function.

13 years agoFollow-up r84233: fix documentation format
Happy-melon [Fri, 18 Mar 2011 13:23:05 +0000 (13:23 +0000)]
Follow-up r84233: fix documentation format

13 years ago(bug 27403) saved user preferences which are subsequently disabled with $wgHiddenPref...
Happy-melon [Fri, 18 Mar 2011 13:03:26 +0000 (13:03 +0000)]
(bug 27403) saved user preferences which are subsequently disabled with $wgHiddenPrefs are not used in output, but are retained in the database in case the preference is subsequently re-enabled.

13 years ago* Fixed wfIncrStats calls from r83617 (I assume this wants the # of jobs added)
Aaron Schulz [Fri, 18 Mar 2011 07:06:18 +0000 (07:06 +0000)]
* Fixed wfIncrStats calls from r83617 (I assume this wants the # of jobs added)
* Follow up r83494, r74737: allow for proper db rollback of a user renames (addresses code comments added in r74737)

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 17 Mar 2011 20:45:32 +0000 (20:45 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-03-17 20:23:00 UTC)

13 years agoparseInt with base 10, update comment (number -> num)
Antoine Musso [Thu, 17 Mar 2011 20:37:32 +0000 (20:37 +0000)]
parseInt with base 10, update comment (number -> num)

follow up r83619

13 years agoFollow up r84134 document reference passing.
Mark A. Hershberger [Thu, 17 Mar 2011 19:22:10 +0000 (19:22 +0000)]
Follow up r84134 document reference passing.

13 years agoFix typo in r83786
Happy-melon [Thu, 17 Mar 2011 19:04:01 +0000 (19:04 +0000)]
Fix typo in r83786

13 years agoBe more consistent if updater script's output
Alexandre Emsenhuber [Thu, 17 Mar 2011 18:02:37 +0000 (18:02 +0000)]
Be more consistent if updater script's output

13 years agoPer Tim Starling, follow-up r83137: added schema update
Alexandre Emsenhuber [Thu, 17 Mar 2011 17:35:52 +0000 (17:35 +0000)]
Per Tim Starling, follow-up r83137: added schema update

13 years agoEnable preprocessDump.php to work without a db.
Platonides [Thu, 17 Mar 2011 16:06:12 +0000 (16:06 +0000)]
Enable preprocessDump.php to work without a db.
Using the new hook added in r84173

13 years agoAdd hook InterwikiLoadPrefix
Platonides [Thu, 17 Mar 2011 15:51:19 +0000 (15:51 +0000)]
Add hook InterwikiLoadPrefix

13 years agoAlso remove message as followup to r84133
Sam Reed [Thu, 17 Mar 2011 15:18:19 +0000 (15:18 +0000)]
Also remove message as followup to r84133

13 years ago* (bug 27924) PhpHttpRequest doesn't return response body if HTTP != 200
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

13 years agoUpdate output language.
Siebrand Mazeland [Thu, 17 Mar 2011 09:05:34 +0000 (09:05 +0000)]
Update output language.

13 years agoFix r84131, Installer classes not initialised/in usage, so we can't do this.
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

13 years agoFix Bug #28082, Add Hooks to User::addGroup and User::removeGroup
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.

13 years agoAnother old version checking thing
Sam Reed [Wed, 16 Mar 2011 22:48:47 +0000 (22:48 +0000)]
Another old version checking thing

13 years agoLess hardcoding...
Sam Reed [Wed, 16 Mar 2011 22:43:17 +0000 (22:43 +0000)]
Less hardcoding...

13 years agoAdd a couple of braces and spacing
Platonides [Wed, 16 Mar 2011 22:42:19 +0000 (22:42 +0000)]
Add a couple of braces and spacing

13 years agoKill off some more old version checking stuffs
Sam Reed [Wed, 16 Mar 2011 22:38:17 +0000 (22:38 +0000)]
Kill off some more old version checking stuffs

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
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)

13 years ago(follow-up r65035/r65013) The username parameter wasn't preserved when clicking links...
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.

13 years agoRemoved usage of extract() in LinkHolderArray::doVariants()
Alexandre Emsenhuber [Wed, 16 Mar 2011 09:05:32 +0000 (09:05 +0000)]
Removed usage of extract() in LinkHolderArray::doVariants()

13 years agoMakes LanguageTr uc & lc match parent declaration
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

13 years agoRevert r83993
Sam Reed [Wed, 16 Mar 2011 00:13:10 +0000 (00:13 +0000)]
Revert r83993

13 years ago(Bug 28069) MediaWiki fails streaming files when mod_deflate and ob_gzhandler are...
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"

13 years agobug 28040 Turkish: properly handle dotted and dotless i
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

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
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)