lhc/web/wiklou.git
13 years agoConvert r86795 tests into a dataProvider
Platonides [Sun, 1 May 2011 21:33:16 +0000 (21:33 +0000)]
Convert r86795 tests into a dataProvider

13 years agoRefactor out common code
Sam Reed [Sun, 1 May 2011 21:28:00 +0000 (21:28 +0000)]
Refactor out common code

13 years agoUse HTML5 for formatted API output
Max Semenik [Sun, 1 May 2011 21:19:40 +0000 (21:19 +0000)]
Use HTML5 for formatted API output

13 years ago(bug 28343) Kill unused contextlines/contextchars
Chad Horohoe [Sun, 1 May 2011 21:14:32 +0000 (21:14 +0000)]
(bug 28343) Kill unused contextlines/contextchars

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sun, 1 May 2011 20:17:55 +0000 (20:17 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-05-01 20:01:00 UTC)

13 years agoAdded wgIsMainPage (Title->isMainPage) to mw.config
Krinkle [Sun, 1 May 2011 19:46:09 +0000 (19:46 +0000)]
Added wgIsMainPage (Title->isMainPage) to mw.config
* Instead of ugly javascript construction to compare href-attributes or re-constructing proper pagenames, let's use Title->isMainPage which does this much better
* Kept function for compatibility. mw.util.isMainPage() was never released, should probably be removed before 1.18 branch point.

13 years agoFix the old XmlTest.php test bug in the dateMenu() when the wiki is configured for...
Platonides [Sun, 1 May 2011 19:32:49 +0000 (19:32 +0000)]
Fix the old XmlTest.php test bug in the dateMenu() when the wiki is configured for a languange other than English
Other tests were running before and messing with the Language objects.

13 years agoCosmetic change
Platonides [Sun, 1 May 2011 19:31:18 +0000 (19:31 +0000)]
Cosmetic change

13 years ago(bug 27916) Don't prefix wgServer in mw.util.wikiGetlink
Krinkle [Sun, 1 May 2011 19:20:31 +0000 (19:20 +0000)]
(bug 27916) Don't prefix wgServer in mw.util.wikiGetlink

The check is not needed, if wgArticlePath is undefined there's probably a much bigger issue.

The wgServer doesn't need to be prefixed to the link (if someone really needs it (ie. external tools using the script and somehow defining wgServer in mw.config) they can surely prefix wgServer themselfs.

In most if not all cases this is used to create anchor tags, which are interprated by browsers relatively to the current window location and in some browsers it even auto-prefixes the current environment when setting the href/src attribute.

I did a grep search for "wikiGetlink" in /trunk (including ./extensions), there was one usage that assumed the wgServer prefix. Turned out that was actually a workaround untill this bug was fixed. I remove that workaround ( in mw.util.isMainPage).

13 years ago(bug 28738) Implement request splitting in mw.loader so ResourceLoader requests with...
Roan Kattouw [Sun, 1 May 2011 18:41:42 +0000 (18:41 +0000)]
(bug 28738) Implement request splitting in mw.loader so ResourceLoader requests with query strings longer than a certain value are split up. The maximum query string length is configurable, and this behavior is disabled by default. It's needed in rare cases where there is a query string length or GET variable length limit in place that the wiki admin can't raise.

13 years agoRemove unneeded manual quoting from r87180
Sam Reed [Sun, 1 May 2011 11:20:14 +0000 (11:20 +0000)]
Remove unneeded manual quoting from r87180

13 years ago* (bug 28225) Allow hiding of user groups in list=allusers
Sam Reed [Sun, 1 May 2011 00:24:39 +0000 (00:24 +0000)]
* (bug 28225) Allow hiding of user groups in list=allusers

Yay, a LEFT OUTER JOIN

13 years ago$db is already defined, don't use $this->getDB() again
Sam Reed [Sun, 1 May 2011 00:17:39 +0000 (00:17 +0000)]
$db is already defined, don't use $this->getDB() again

13 years agoFollowup r85884
Sam Reed [Sat, 30 Apr 2011 23:18:34 +0000 (23:18 +0000)]
Followup r85884

Fixup the APIs strange way of doing table aliases on a join....

Only used in very few places

13 years agoFix bug in Status::getItemXML
Bryan Tong Minh [Sat, 30 Apr 2011 22:12:51 +0000 (22:12 +0000)]
Fix bug in Status::getItemXML

13 years agoAdd --include-files option to dumpBackup.php to include the uploaded files in the...
Bryan Tong Minh [Sat, 30 Apr 2011 21:35:09 +0000 (21:35 +0000)]
Add --include-files option to dumpBackup.php to include the uploaded files in the XML stream. Uses new backend features from r85911.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 30 Apr 2011 21:21:47 +0000 (21:21 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-30 20:50:00 UTC)

13 years agoBug 27047: Nicer design for pre elements in Vector
Leo Koppelkamm [Sat, 30 Apr 2011 19:49:57 +0000 (19:49 +0000)]
Bug 27047: Nicer design for pre elements in Vector

13 years ago(bug 28076) Thumbnail height limited to 360 pixels on Special:Listfiles
Bryan Tong Minh [Sat, 30 Apr 2011 18:50:37 +0000 (18:50 +0000)]
(bug 28076) Thumbnail height limited to 360 pixels on Special:Listfiles

13 years agoFollowup r87150
Sam Reed [Sat, 30 Apr 2011 16:52:28 +0000 (16:52 +0000)]
Followup r87150

Reuse SpecialVersions arrayToString (made it explicitly public!) in an array_amp for the formatting of arrays/objects (Yay for all the different ways we accept things ;P)

13 years agoFollowup r87147, let the formatters do teh escaping
Sam Reed [Sat, 30 Apr 2011 16:38:59 +0000 (16:38 +0000)]
Followup r87147, let the formatters do teh escaping

13 years agoPer Siebrand: fix typo in RELEASE-NOTES
Alexandre Emsenhuber [Sat, 30 Apr 2011 15:50:05 +0000 (15:50 +0000)]
Per Siebrand: fix typo in RELEASE-NOTES

13 years agoI have no idea where that count() pass in r87165
Alexandre Emsenhuber [Sat, 30 Apr 2011 15:14:12 +0000 (15:14 +0000)]
I have no idea where that count() pass in r87165

13 years agoProperly escape the ouput in action=credits (and in page footer), using wfMessage...
Alexandre Emsenhuber [Sat, 30 Apr 2011 15:12:33 +0000 (15:12 +0000)]
Properly escape the ouput in action=credits (and in page footer), using wfMessage() to be able to replace some parameters before and some after

13 years agoRecommit r87129 and follow-ups but with a fix for the bug Brion found (sorry)
Alexandre Emsenhuber [Sat, 30 Apr 2011 14:08:12 +0000 (14:08 +0000)]
Recommit r87129 and follow-ups but with a fix for the bug Brion found (sorry)

13 years agoUse a reversed magnify image for framed image thumbnails when on a RTL wiki.
Daniel Friesen [Sat, 30 Apr 2011 12:04:00 +0000 (12:04 +0000)]
Use a reversed magnify image for framed image thumbnails when on a RTL wiki.

13 years agoRevert r87129 "(bug 21196) Article::getContributors() no longer fail on PostgreSQL...
Brion Vibber [Fri, 29 Apr 2011 23:57:28 +0000 (23:57 +0000)]
Revert r87129 "(bug 21196) Article::getContributors() no longer fail on PostgreSQL" -- breaks stuff under MySQL like this:

SkinTemplate::makeTalkUrlDetails given invalid pagename User:

Backtrace:

#0 /var/www/trunk/includes/SkinTemplate.php(691): SkinTemplate->makeTalkUrlDetails('User:')
#1 /var/www/trunk/includes/SkinTemplate.php(495): SkinTemplate->buildPersonalUrls(Object(OutputPage))
#2 /var/www/trunk/includes/OutputPage.php(1906): SkinTemplate->outputPage(Object(OutputPage))
#3 /var/www/trunk/includes/Wiki.php(402): OutputPage->output()
#4 /var/www/trunk/index.php(146): MediaWiki->finalCleanup()
#5 {main}

Seen trivially by going to login page while not logged in; some user check is failing and ending up with an improperly initialized object.

13 years agoTweak documentation
Sam Reed [Fri, 29 Apr 2011 23:34:37 +0000 (23:34 +0000)]
Tweak documentation

Add braces

13 years ago* Get a list of all subscribed hooks, and those subscribers
Sam Reed [Fri, 29 Apr 2011 23:33:38 +0000 (23:33 +0000)]
* Get a list of all subscribed hooks, and those subscribers

Essentially what SpecialVersion will give you if wgSpecialVersionShowHooks is true

13 years ago* (bug 27179) API: List of extension tags
Sam Reed [Fri, 29 Apr 2011 23:02:10 +0000 (23:02 +0000)]
* (bug 27179) API: List of extension tags
* Get a list of function hooks through meta=siteinfo

13 years agoMake this private since nothing outside here calls it
Chad Horohoe [Fri, 29 Apr 2011 22:40:31 +0000 (22:40 +0000)]
Make this private since nothing outside here calls it

13 years ago(bug 28752) XCache doesn't work in CLI mode
Chad Horohoe [Fri, 29 Apr 2011 22:40:12 +0000 (22:40 +0000)]
(bug 28752) XCache doesn't work in CLI mode

13 years agoFix group by for Special:MostLinkedTemplates
OverlordQ [Fri, 29 Apr 2011 22:38:30 +0000 (22:38 +0000)]
Fix group by for Special:MostLinkedTemplates

13 years agoFollowup to r85907, correctly quote table names.
OverlordQ [Fri, 29 Apr 2011 22:27:34 +0000 (22:27 +0000)]
Followup to r85907, correctly quote table names.
Followup to r87129, add handling of arrayed GROUP BY/ORDER BY options to match core class so that this will indeed work.

13 years agoAdd cdb.php for inspecting cdb cache files. Format is stolen from mcc.php
Chad Horohoe [Fri, 29 Apr 2011 22:08:58 +0000 (22:08 +0000)]
Add cdb.php for inspecting cdb cache files. Format is stolen from mcc.php

13 years agosmall doc fix
Jeroen De Dauw [Fri, 29 Apr 2011 22:05:36 +0000 (22:05 +0000)]
small doc fix

13 years agoFollowup r87132, per Bryan, still return the "limit" to be the current users limit...
Sam Reed [Fri, 29 Apr 2011 21:46:17 +0000 (21:46 +0000)]
Followup r87132, per Bryan, still return the "limit" to be the current users limit, but return high/low limit

13 years agoadded since tag for people that care about compat
Jeroen De Dauw [Fri, 29 Apr 2011 21:29:20 +0000 (21:29 +0000)]
added since tag for people that care about compat

13 years ago* (bug 28238) paraminfo: output both limits for multi param
Sam Reed [Fri, 29 Apr 2011 20:52:57 +0000 (20:52 +0000)]
* (bug 28238) paraminfo: output both limits for multi param

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 29 Apr 2011 20:09:54 +0000 (20:09 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-29 19:47:00 UTC)

13 years ago* (bug 21196) Article::getContributors() no longer fail on PostgreSQL
Alexandre Emsenhuber [Fri, 29 Apr 2011 18:27:44 +0000 (18:27 +0000)]
* (bug 21196) Article::getContributors() no longer fail on PostgreSQL

Changed User::loadFromRow() to allow partial row (user_id, user_name, user_real_name can be set independently from other fields) userand removed User::$mDataLoaded, replaced by User::$mLoadedItems (marked as private) that can be an array with already loaded items or true when all data has been loaded. Changed GlobalFunctions.php and Database.php accordingly, no use of User::$mDataLoaded in extensions.

13 years agoFollowup r86800, add missing ()
Sam Reed [Fri, 29 Apr 2011 17:51:50 +0000 (17:51 +0000)]
Followup r86800, add missing ()

13 years agoThe $wgLocalisationCacheConf was being overwritten by the default value.
Platonides [Fri, 29 Apr 2011 16:26:20 +0000 (16:26 +0000)]
The $wgLocalisationCacheConf was being overwritten by the default value.
Restores the ability to run databaseless tests broken by r86775

13 years agofix return type descriptions
Jeroen De Dauw [Fri, 29 Apr 2011 15:41:57 +0000 (15:41 +0000)]
fix return type descriptions

13 years agofix typo
Jeroen De Dauw [Fri, 29 Apr 2011 15:37:01 +0000 (15:37 +0000)]
fix typo

13 years agoPer discussion on Mediawiki-l, talk about the GROUP BY issue a bit.
Greg Sabino Mullane [Fri, 29 Apr 2011 13:42:48 +0000 (13:42 +0000)]
Per discussion on Mediawiki-l, talk about the GROUP BY issue a bit.

13 years agoRemove pointless warning: ceratinly I can't imagine why we show a warning when using...
Greg Sabino Mullane [Fri, 29 Apr 2011 13:20:47 +0000 (13:20 +0000)]
Remove pointless warning: ceratinly I can't imagine why we show a warning when using a filter versus not using one (below the case, where we set $sink but don't issue a warning)

13 years agoAnd now I'm yelled at not fixing typos made by others :)
Niklas Laxström [Fri, 29 Apr 2011 07:15:36 +0000 (07:15 +0000)]
And now I'm yelled at not fixing typos made by others :)

13 years agoOmg typofix
Niklas Laxström [Fri, 29 Apr 2011 05:40:13 +0000 (05:40 +0000)]
Omg typofix

13 years agoMoved the tab break from the link to the span. This allows for multiple icons, as...
Jan Paul Posma [Thu, 28 Apr 2011 21:34:55 +0000 (21:34 +0000)]
Moved the tab break from the link to the span. This allows for multiple icons, as icons overwrite this link image and thus wouldn't have a tab break. This was originally solved for the watchlist star by using a right margin, so this one is removed to prevent double borders.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 28 Apr 2011 20:38:36 +0000 (20:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-28 20:00:00 UTC)

13 years agoProvisional fix for Bug #28631 to remove artifacts from GIF. This
Mark A. Hershberger [Thu, 28 Apr 2011 20:18:32 +0000 (20:18 +0000)]
Provisional fix for Bug #28631 to remove artifacts from GIF.  This
seems better in my (very) limited testing than leaving it in, but I'd
like to get more tests.

13 years agoApplied patch supplied in bug #28699 to prevent obscuring content when consoless...
Trevor Parscal [Thu, 28 Apr 2011 14:58:41 +0000 (14:58 +0000)]
Applied patch supplied in bug #28699 to prevent obscuring content when consoless browsers get a console rendered for them by mediawiki.log. Also adds pre-wrap CSS rule to allow \n to render properly in the console. Thanks for the patch!

13 years ago* close connection in class destructor (unlike MySql, Oracle does not commit on close)
Jure Kajzer [Thu, 28 Apr 2011 12:44:19 +0000 (12:44 +0000)]
* close connection in class destructor (unlike MySql, Oracle does not commit on close)

13 years agoUpdate date format default and options.
Siebrand Mazeland [Thu, 28 Apr 2011 08:33:49 +0000 (08:33 +0000)]
Update date format default and options.

13 years agoRemove unused mdy data format.
Siebrand Mazeland [Thu, 28 Apr 2011 08:29:06 +0000 (08:29 +0000)]
Remove unused mdy data format.

13 years agoDeclare some local vars/funcs as local so they don't stomp on JS global namespaces...
Brion Vibber [Thu, 28 Apr 2011 00:18:01 +0000 (00:18 +0000)]
Declare some local vars/funcs as local so they don't stomp on JS global namespaces weirdly

13 years agoLittle performance fix and typo fix. Follow-up r86202
Krinkle [Wed, 27 Apr 2011 22:19:56 +0000 (22:19 +0000)]
Little performance fix and typo fix. Follow-up r86202

13 years agoFU: r87041: Oops
Krinkle [Wed, 27 Apr 2011 20:27:26 +0000 (20:27 +0000)]
FU: r87041: Oops

13 years agoFixes for IE7 (alignment of checkboxes due to double-margin bug on floated elements...
Krinkle [Wed, 27 Apr 2011 20:25:35 +0000 (20:25 +0000)]
Fixes for IE7 (alignment of checkboxes due to double-margin bug on floated elements. The popular display:inline hack doesn't fix this. Removed the margin for now, was collapsed/invisible in most browsers anyway. Covered by the margins on the parent elements.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 27 Apr 2011 20:22:02 +0000 (20:22 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-27 20:00:00 UTC)

13 years ago* (bug 28719) Do not call mLinkHolders __destruct explicitly
Sam Reed [Wed, 27 Apr 2011 20:05:39 +0000 (20:05 +0000)]
* (bug 28719) Do not call mLinkHolders __destruct explicitly

Patch by Vitaliy Filippov

13 years agorevert r76127, r76129, and r83535 b/c I'm backing out the fix for bug #542. Fixing...
Mark A. Hershberger [Wed, 27 Apr 2011 19:13:34 +0000 (19:13 +0000)]
revert r76127, r76129, and r83535 b/c I'm backing out the fix for bug #542.  Fixing ancient bugs causes grief for many people.

13 years agoBug 28039 - Boldface all fatals. Moved showError() from WebInstaller to base class...
Max Semenik [Wed, 27 Apr 2011 18:22:01 +0000 (18:22 +0000)]
Bug 28039 - Boldface all fatals. Moved showError() from WebInstaller to base class, added its call to all env checks wherever appropriate. Also fixed a fatal in CLI installer when no DB drivers are present.

13 years agoLocalization fix for he.
Rotem Liss [Wed, 27 Apr 2011 11:26:01 +0000 (11:26 +0000)]
Localization fix for he.

13 years agoLocalization update for he.
Rotem Liss [Wed, 27 Apr 2011 11:22:24 +0000 (11:22 +0000)]
Localization update for he.

13 years agoTableSorter: Allow whitespace between digits and percent sign. Fixes Bug 28406
Leo Koppelkamm [Wed, 27 Apr 2011 11:02:59 +0000 (11:02 +0000)]
TableSorter: Allow whitespace between digits and percent sign. Fixes Bug 28406

13 years agoUpdate date formats for Indonedian (id). Requested by Ivan Lanin.
Siebrand Mazeland [Wed, 27 Apr 2011 09:46:37 +0000 (09:46 +0000)]
Update date formats for Indonedian (id). Requested by Ivan Lanin.

Discussed at https://translatewiki.net/wiki/Thread:Support/Time_format

13 years agoRELEASE-NOTES TLC:
Siebrand Mazeland [Wed, 27 Apr 2011 09:43:19 +0000 (09:43 +0000)]
RELEASE-NOTES TLC:
* break lines at or before 80 characters.
* punctuation for every entry.
* all caps for API and SVG.
* move an entry to language updates.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 26 Apr 2011 20:24:56 +0000 (20:24 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-26 20:00:00 UTC)

13 years agojquery.byteLimit fixes:
Krinkle [Tue, 26 Apr 2011 20:00:59 +0000 (20:00 +0000)]
jquery.byteLimit fixes:
* 'this' in a fn/prototype context already points to the jQuery object. Calling $(this) is redundant and goes through $.fn.init again untill it reaches the last else case (luckily $.fn.init() has a failsafe case for that, but also makes it harder to spot)
* Adding support for using the current attribute value (to avoid having to duplicate the values between PHP and JavaScript). Fully backwards compatible, I think it's a very handy feature to be able to pass a custom length, but using the maxLength attribute as a default makes sense.

13 years agoOops, forgot to revert r86954 in r86973, not needed anymore
Max Semenik [Tue, 26 Apr 2011 19:23:23 +0000 (19:23 +0000)]
Oops, forgot to revert r86954 in r86973, not needed anymore

13 years agoFollow-up r86954: make one centralised call to array_values(), there are more breakag...
Max Semenik [Tue, 26 Apr 2011 19:20:19 +0000 (19:20 +0000)]
Follow-up r86954: make one centralised call to array_values(), there are more breakages of this kind

13 years ago* Fix ancient jumpy bug when clicking the hover-triangle (normally nobody does that...
Krinkle [Tue, 26 Apr 2011 18:18:29 +0000 (18:18 +0000)]
* Fix ancient jumpy bug when clicking the hover-triangle (normally nobody does that, but just tried it for screenreader thing, it's been around for quite some time (href="#": needs preventDefault)
* jQuery chaining :)
* Add bugzilla ref. in comment ("hidden link being clicked")
(Follow-up r86958, r86861)

13 years agoSelectors go from right to left. Starting with a generic 'a' is kind of slow. Also...
Krinkle [Tue, 26 Apr 2011 18:01:52 +0000 (18:01 +0000)]
Selectors go from right to left. Starting with a generic 'a' is kind of slow. Also loses the advantage of an id-selector.
* Optimizing by selecting the ID seperately (very fast) and doing a find() within that context (also caching pCactions ).
* while at it:
 - caching selector
 - aliasing $ to jQuery locally
 - Shorthand dom-ready

(Follow-up r86861)

13 years agoWithout this array_values(), user groups will be exported to JSON as object instead...
Max Semenik [Tue, 26 Apr 2011 17:29:57 +0000 (17:29 +0000)]
Without this array_values(), user groups will be exported to JSON as object instead of array

13 years agoFollowup to r86603 per Bug 28681 : Create public array mw.toolbar.buttons. User scrip...
Leo Koppelkamm [Tue, 26 Apr 2011 10:08:46 +0000 (10:08 +0000)]
Followup to r86603 per Bug 28681 : Create public array mw.toolbar.buttons. User scripts can modify it, until it's written to the DOM on doc.ready

13 years ago* typo from r86708
Jure Kajzer [Tue, 26 Apr 2011 07:17:33 +0000 (07:17 +0000)]
* typo from r86708

13 years ago* (bug 28702) Undefined offset in ApiParamInfo.php
Sam Reed [Mon, 25 Apr 2011 22:56:08 +0000 (22:56 +0000)]
* (bug 28702) Undefined offset in ApiParamInfo.php

Followup r85758 (bug 28254)

If no DFLT is set, fall back to "null", which means a string parameter

13 years agoMore parameter and return type hints
Sam Reed [Mon, 25 Apr 2011 22:41:54 +0000 (22:41 +0000)]
More parameter and return type hints

13 years agoFollowup r86905, after saving GlobalFunctions.php
Sam Reed [Mon, 25 Apr 2011 21:41:02 +0000 (21:41 +0000)]
Followup r86905, after saving GlobalFunctions.php

13 years agoMove 5 more classes into cache/
Sam Reed [Mon, 25 Apr 2011 21:38:48 +0000 (21:38 +0000)]
Move 5 more classes into cache/

13 years agofix for bug 28573 - in printable version centered images are not centered
Ryan Kaldari [Mon, 25 Apr 2011 21:37:32 +0000 (21:37 +0000)]
fix for bug 28573 - in printable version centered images are not centered

13 years agoMove 3 files into cache directory
Sam Reed [Mon, 25 Apr 2011 21:33:38 +0000 (21:33 +0000)]
Move 3 files into cache directory

Move in AutoLoader to cache section also

13 years agoType hinting
Sam Reed [Mon, 25 Apr 2011 21:25:45 +0000 (21:25 +0000)]
Type hinting

Braces

Remove extra whitespace

13 years agoFollowup r86898, fix $wgProxyScriptPath
Sam Reed [Mon, 25 Apr 2011 21:18:17 +0000 (21:18 +0000)]
Followup r86898, fix $wgProxyScriptPath

13 years agoproxy_check.php is probably useful to keep around, but it's not really an includes...
Sam Reed [Mon, 25 Apr 2011 21:04:45 +0000 (21:04 +0000)]
proxy_check.php is probably useful to keep around, but it's not really an includes script

Move it to maintenance/proxy_check.php

13 years ago* (bug 28627) External link normalization now handles file: URL cases without throwin...
Brion Vibber [Mon, 25 Apr 2011 21:00:49 +0000 (21:00 +0000)]
* (bug 28627) External link normalization now handles file: URL cases without throwing notice warnings.

Added some test cases for wfMakeUrlIndex() to GlobalTests (tweaks $wgUrlProtocols to toss in file:// support so it can test them).
Needs more cases for other URL styles probably; some of the more pathological file: URL cases still won't normalize really cleanly but will go through the function without exploding. The most-needed variants will be the Windows/IE-compatible ones I think -- so file:///c:/foo or file://server/foo.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 25 Apr 2011 19:45:47 +0000 (19:45 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-25 19:23:00 UTC)

13 years agoFix for r86670: properly convert uppercase latin to syllabics
Robin Pepermans [Mon, 25 Apr 2011 19:00:53 +0000 (19:00 +0000)]
Fix for r86670: properly convert uppercase latin to syllabics

13 years agoRevert r86872: Breaks LiquidThreads page moves with the below failure. Threads are...
Siebrand Mazeland [Mon, 25 Apr 2011 18:20:53 +0000 (18:20 +0000)]
Revert r86872: Breaks LiquidThreads page moves with the below failure. Threads are lost and nowhere to be found any more.

[25-Apr-2011 18:12:45] /wiki/Special:MoveThread/Thread:User_talk:Siebrand/test/One_new_message: Exception: MWNamespace::getTalk does not make any sense for given namespace -1
#0 /www/w/includes/Namespace.php(81): MWNamespace::isMethodValidFor(-1, 'MWNamespace::ge...')
#1 /www/w/includes/WatchedItem.php(73): MWNamespace::getTalk(-1)
#2 /www/w/includes/User.php(2304): WatchedItem->addWatch()
#3 /www/w/includes/actions/WatchAction.php(53): User->addWatch(Object(Title))
#4 /www/w/includes/Action.php(376): WatchAction->onView()
#5 /www/w/extensions/LiquidThreads/classes/Thread.php(115): FormlessAction->execute()
#6 /www/w/extensions/LiquidThreads/classes/Thread.php(435): Thread::create(Object(Article), Object(Article), NULL, 1, 'One new message')
#7 /www/w/extensions/LiquidThreads/classes/Thread.php(414): Thread->leaveTrace('move test', Object(Title), Object(Title))
#8 /www/w/extensions/LiquidThreads/pages/SpecialMoveThread.php(107): Thread->moveToPage(Object(Title), 'move test', true)
#9 [internal function]: SpecialMoveThread->trySubmit(Array)
#10 /www/w/includes/HTMLForm.php(279): call_user_func(Array, Array)
#11 /www/w/includes/HTMLForm.php(228): HTMLForm->trySubmit()
#12 /www/w/includes/HTMLForm.php(242): HTMLForm->tryAuthorizedSubmit()
#13 /www/w/extensions/LiquidThreads/pages/ThreadActionPage.php(37): HTMLForm->show()
#14 /www/w/includes/SpecialPageFactory.php(459): ThreadActionPage->execute('Thread:User_tal...')
#15 /www/w/includes/Wiki.php(252): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#16 /www/w/includes/Wiki.php(98): MediaWiki->handleSpecialCases()
#17 /www/w/index.php(145): MediaWiki->performRequestForTitle(NULL)
#18 {main}

13 years agoImplement an interface and abstract class to hold the widely-reused get(Request|User...
Happy-melon [Mon, 25 Apr 2011 17:37:43 +0000 (17:37 +0000)]
Implement an interface and abstract class to hold the widely-reused get(Request|User|Title|Lang|Skin|Output) accessors for objects acting as a context source.  Article is rather messier because both getTitle() and getUser() are in use for other things, and Article::$mTitle is in extremely wide use both within Article.php and outside.

13 years agoType hinting and documentation tweaks. This file is actually pretty good...
Happy-melon [Mon, 25 Apr 2011 17:34:30 +0000 (17:34 +0000)]
Type hinting and documentation tweaks.  This file is actually pretty good...

13 years ago* (bug 27249) "Installed software" table in Special:Version should always be left...
Sam Reed [Mon, 25 Apr 2011 14:46:42 +0000 (14:46 +0000)]
* (bug 27249) "Installed software" table in Special:Version should always be left-to-right

Patch by Jan Paul Posma

13 years ago(bug 24298) Make dropdown menus in Vector more accessible by expanding and collapsing...
Roan Kattouw [Mon, 25 Apr 2011 14:08:01 +0000 (14:08 +0000)]
(bug 24298) Make dropdown menus in Vector more accessible by expanding and collapsing them when the hidden link behind the dropdown arrow receives a click event (triggered by an enter or space bar key press in the typical use case) and changing the appearance of the arrow when the hidden link behind it is focused. Patch by Jan Paul Posma
--This line, and those behind, will be ignored--

M    phase3/skins/Vector.php
M    phase3/skins/vector/images/arrow-down-icon.png
M    phase3/skins/vector/screen.css
AM   phase3/skins/vector/vector.js
M    phase3/resources/Resources.php

13 years agoRm all mentions of "this module" in API action descriptions. They are supposed to...
Max Semenik [Mon, 25 Apr 2011 14:05:57 +0000 (14:05 +0000)]
Rm all mentions of "this module" in API action descriptions. They are supposed to be read by API users, not MW coders, thus internal terminology shouldn't be used here.

13 years agoAdd |alt= option for galleries ( Bug 18682 ). Recommit of r86749, with nested |alt...
Leo Koppelkamm [Mon, 25 Apr 2011 13:51:54 +0000 (13:51 +0000)]
Add |alt= option for galleries ( Bug 18682 ). Recommit of r86749, with nested |alt= now fixed. Patch by Jan Paul Posma

13 years agoFix typo in description
Max Semenik [Mon, 25 Apr 2011 13:44:54 +0000 (13:44 +0000)]
Fix typo in description

13 years agoFollowup to r86854: fix $ object
Leo Koppelkamm [Mon, 25 Apr 2011 13:18:09 +0000 (13:18 +0000)]
Followup to r86854: fix $ object

13 years agoFollowup to r86108: jQuery tries to be too smart and converts the string to a number...
Leo Koppelkamm [Mon, 25 Apr 2011 13:15:26 +0000 (13:15 +0000)]
Followup to r86108: jQuery tries to be too smart and converts the string to a number, which breaks the value parser