lhc/web/wiklou.git
11 years agoMerge "Clean up mw.util.jsMessage"
Trevor Parscal [Mon, 13 Aug 2012 03:18:41 +0000 (03:18 +0000)]
Merge "Clean up mw.util.jsMessage"

11 years agoRemove workaround hack for php bug 46944
Reedy [Sun, 12 Aug 2012 20:11:34 +0000 (21:11 +0100)]
Remove workaround hack for php bug 46944

https://bugs.php.net/bug.php?id=46944

Fixed for 5.3.0, and as we require >= 5.3.2, workaround is redundant

http://php.net/ChangeLog-5.php

Change-Id: I567466c0c747dba2f903e9258d0f06f725cefb8f

11 years agoMerge "Localisation updates from http://translatewiki.net."
IAlex [Sun, 12 Aug 2012 20:10:52 +0000 (20:10 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 12 Aug 2012 19:44:03 +0000 (19:44 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I18d4e10c42bbda638eeb887a473e5ee2ee90909f

11 years agoAdded missing @since tags and fixed style
jeroendedauw [Sun, 12 Aug 2012 19:35:37 +0000 (21:35 +0200)]
Added missing @since tags and fixed style

Change-Id: I8941345be8f754bda40f4c36cf2082ca3d408c50

11 years agoMerge "Follow-up I1fc22b16 (06db921): Cast "required" parameter to boolean"
Nikerabbit [Sun, 12 Aug 2012 17:58:58 +0000 (17:58 +0000)]
Merge "Follow-up I1fc22b16 (06db921): Cast "required" parameter to boolean"

11 years agoFollow-up I1fc22b16 (06db921): Cast "required" parameter to boolean
Alexandre Emsenhuber [Sun, 12 Aug 2012 16:59:42 +0000 (18:59 +0200)]
Follow-up I1fc22b16 (06db921): Cast "required" parameter to boolean

Change-Id: I24e678500ab6b207b1d0ef32dd901913d8f131ed

11 years agoMerge "Improve handling of the required argument in HTMLForm field definitions"
IAlex [Sun, 12 Aug 2012 16:58:36 +0000 (16:58 +0000)]
Merge "Improve handling of the required argument in HTMLForm field definitions"

11 years agoClean up mw.util.jsMessage
Timo Tijhof [Sun, 12 Aug 2012 05:04:50 +0000 (07:04 +0200)]
Clean up mw.util.jsMessage

* Re-use hideMessage()
* Actually set messageBoxEvents to true so that the one-time
  setup is only set up once.
* Optimize hex colors ({6}->{3}).
  While at it, also ran it for the rest of the file.

* Follows-up I41c70d78

Change-Id: I1863b62003edc825fdefe53d02c2d22e36409234

11 years agoUpdate message specialpages-group-login to match other similar messages
Reedy [Sat, 11 Aug 2012 23:28:58 +0000 (00:28 +0100)]
Update message specialpages-group-login to match other similar messages

Swap signup for create account

Change-Id: I3b90729a345946b48c1fc30e1d3bdd4a192f5283

11 years agoImprove handling of the required argument in HTMLForm field definitions
jeroendedauw [Sat, 11 Aug 2012 22:23:46 +0000 (00:23 +0200)]
Improve handling of the required argument in HTMLForm field definitions

array( 'required' => false ) will now result in the field not being required rather then the unexpected opossite.

And this is now possible (without doing some extra if)

array( 'required' => getSomeBoolean() )

Change-Id: I1fc22b16ab1fa17111c48aa664aaf47de5f7075a

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 11 Aug 2012 19:11:00 +0000 (19:11 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib0ec788f7d5031e7e1eeab4c9da5d1cc78c1d6a9

11 years agoMerge "(bug 34264) Add id="t-print" to the print toolbox link."
Krinkle [Sat, 11 Aug 2012 15:48:18 +0000 (15:48 +0000)]
Merge "(bug 34264) Add id="t-print" to the print toolbox link."

11 years ago(bug 34264) Add id="t-print" to the print toolbox link.
Daniel Friesen [Sat, 11 Aug 2012 04:48:00 +0000 (21:48 -0700)]
(bug 34264) Add id="t-print" to the print toolbox link.

Change-Id: I62c2d6e4c194c4905ae1942f723a41fd20df3a98

11 years agoMerge "Add rule in Uzbek language converter"
Nikerabbit [Sat, 11 Aug 2012 13:52:21 +0000 (13:52 +0000)]
Merge "Add rule in Uzbek language converter"

11 years agoMerge "jQuery 1.8"
Krinkle [Sat, 11 Aug 2012 10:51:27 +0000 (10:51 +0000)]
Merge "jQuery 1.8"

11 years agojsMessage: Redesign in Vector/Monobook as bubble with auto-hide
Trevor Parscal [Fri, 3 Aug 2012 18:50:36 +0000 (11:50 -0700)]
jsMessage: Redesign in Vector/Monobook as bubble with auto-hide

A bit like the "Growl" notifications on Mac.

The message will auto-hide in all skins, which is especially useful
with VisualEditor because you it does most things through ajax which
means that a msg in there could be visible for way longer than it
should be with no way of hiding it.

By being designed as a floating bubble instead of a static positioned
element in regular document flow it also prevents the page flow
from being interrupted and moved down a bit. Again that was
especially annoying in VisualEditor because jsMessage forced itself
between the tab bar and the editor toolbar, which were meant to be
against each other.

Auto-hiding is disabled while the mouse if hovering the message.
The timer starts again when the mouse is no longer on it.

Also:
* cleaned up some whitespace issues in vector.js
* Removed jshintignore for skins/common
  Removed whitelisting of 'mw' global
  skins/common may not be prefect, but at least this way it gives
  warnings inside the code when writing/editing something, which is
  still useful.
  It helped to catch that 'mw' was used from the global scope.

Change-Id: I41c70d78c8ed8aeb91a598dc4a7b26dfad8d8f6c

11 years agoRemoved useless fj_path_sha1 field to save space.
Aaron Schulz [Sat, 11 Aug 2012 06:03:31 +0000 (23:03 -0700)]
Removed useless fj_path_sha1 field to save space.

* Searches by path are not used by any code, and small blobs
  are stored with the rest of the row in innoDB, so there is
  no gain there. The field is mostly a hangover from a use case
  that never materialized (where it would be indexed).

Change-Id: I5515f15bd35823736138a79a4942c7207e519e5c

11 years ago[FileBackend] Added UTF-8 restriction to file names to avoid CF breakage.
Aaron [Fri, 10 Aug 2012 21:25:59 +0000 (14:25 -0700)]
[FileBackend] Added UTF-8 restriction to file names to avoid CF breakage.

Change-Id: Id0f246c80f2595fba96e99b3bbe778e89dbc6e84

11 years agoAdd rule in Uzbek language converter
robin [Fri, 10 Aug 2012 20:59:59 +0000 (22:59 +0200)]
Add rule in Uzbek language converter

Per user feedback, make sure yo? gets converted to ??, and not to ???

Change-Id: I7a161cfd4c2bc782091ef3844ff5facf0cf27278

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 10 Aug 2012 19:33:03 +0000 (19:33 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoPass the parameters to the error message in UploadStash::stashFile().
Alexandre Emsenhuber [Fri, 10 Aug 2012 19:14:01 +0000 (21:14 +0200)]
Pass the parameters to the error message in UploadStash::stashFile().

Currently it shows the error message without any parameters since
$error is an array with the message name and its parameters, and
the Message class thinks that this is a message with its fallbacks
(see wfMessageFallback())

Change-Id: I5d825144795ad108f0a71f90cc530629c5c98a41

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 10 Aug 2012 19:10:19 +0000 (19:10 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I37f865ec089be6fdc78bec4736144b2a7749f06f

11 years agoMerge "[FileBackend] Added option for copy script to skip non-UTF8 filenames."
Demon [Fri, 10 Aug 2012 18:47:03 +0000 (18:47 +0000)]
Merge "[FileBackend] Added option for copy script to skip non-UTF8 filenames."

11 years agoMerge "Trim $dbSupport in WebInstallerPage.php"
IAlex [Fri, 10 Aug 2012 17:40:01 +0000 (17:40 +0000)]
Merge "Trim $dbSupport in WebInstallerPage.php"

11 years ago[FileBackend] Added option for copy script to skip non-UTF8 filenames.
Aaron Schulz [Fri, 10 Aug 2012 05:23:44 +0000 (22:23 -0700)]
[FileBackend] Added option for copy script to skip non-UTF8 filenames.

Change-Id: I9b48012d890c2c4589984576a31d84dde535ad5b

11 years agoMerge "(bug 38388) Add documentation for MediaWiki:Config-support-info"
Siebrand [Fri, 10 Aug 2012 15:34:19 +0000 (15:34 +0000)]
Merge "(bug 38388) Add documentation for MediaWiki:Config-support-info"

11 years ago(bug 38388) Add documentation for MediaWiki:Config-support-info
Liangent [Fri, 10 Aug 2012 15:16:50 +0000 (23:16 +0800)]
(bug 38388) Add documentation for MediaWiki:Config-support-info

Change-Id: I7463974d1ed2811150bfe50f291fc81f3e7d4ea0

11 years agoTrim $dbSupport in WebInstallerPage.php
Liangent [Fri, 10 Aug 2012 15:11:07 +0000 (23:11 +0800)]
Trim $dbSupport in WebInstallerPage.php

This removes the trailing "\n" which introduces an extra new line.

Change-Id: I74d5d1c95259ca5144932fbe8aa50cb69e036054

11 years agojQuery 1.8
Reedy [Thu, 2 Aug 2012 20:04:37 +0000 (21:04 +0100)]
jQuery 1.8

http://blog.jquery.com/2012/08/09/jquery-1-8-released/

Change-Id: I7b85e1382615e76b1737c7c52691cf8079a55f6e

11 years agoFollow-up I62ba23bd (a47892a): update AutoLoader comment.
Alexandre Emsenhuber [Fri, 10 Aug 2012 09:58:08 +0000 (11:58 +0200)]
Follow-up I62ba23bd (a47892a): update AutoLoader comment.

Also moved the the section to the correct location.

Change-Id: I9cd2d65f7473c513b1fe86aa53e9f83be08a44da

11 years agoFix typo: occured -> occurred.
Siebrand Mazeland [Fri, 10 Aug 2012 08:59:55 +0000 (10:59 +0200)]
Fix typo: occured -> occurred.

Change-Id: I5e66fdd52791487f81796ae1965ac31c94b36182

11 years agoFix documentation for hook AbortNewAccount.
Siebrand Mazeland [Thu, 9 Aug 2012 22:36:13 +0000 (00:36 +0200)]
Fix documentation for hook AbortNewAccount.

Change-Id: I8982f5f512eec0742fe5232c2e68396e9b1c95f4

11 years agoMerge "[FileBackend] Moved filerepo/backend/ up to filebackend"
Demon [Thu, 9 Aug 2012 20:07:47 +0000 (20:07 +0000)]
Merge "[FileBackend] Moved filerepo/backend/ up to filebackend"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 9 Aug 2012 19:42:36 +0000 (19:42 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 9 Aug 2012 19:21:24 +0000 (19:21 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib16713056929fa5ef310cb824a235a81bd9c960d

11 years agoMerge "Added @since tags"
IAlex [Thu, 9 Aug 2012 19:18:38 +0000 (19:18 +0000)]
Merge "Added @since tags"

11 years agoAdded @since tags
jeroendedauw [Thu, 9 Aug 2012 16:03:14 +0000 (18:03 +0200)]
Added @since tags

Change-Id: I90717790ac159713e48de7eb89649c3bcbce1d87

11 years agoMerge "Kranitor #2: Pass JSHint on resources/mediawiki/*"
Catrope [Thu, 9 Aug 2012 18:45:36 +0000 (18:45 +0000)]
Merge "Kranitor #2: Pass JSHint on resources/mediawiki/*"

11 years agoKranitor #2: Pass JSHint on resources/mediawiki/*
Timo Tijhof [Tue, 24 Jul 2012 20:45:20 +0000 (13:45 -0700)]
Kranitor #2: Pass JSHint on resources/mediawiki/*

* .jshintrc
 - Update properties to reflect our conventions more

* Re-pass resources/jquery/*
* Pass resources/mediawiki/*
 - Trailing whitespace
 - Whitelist the one usage of document.write with
   a local /*jshint evil:true */ in the function that
   we allow to use it.
 - Get rid of dangling _ in var names and undescriptive
   instances of '_this'.
 - More code conventions

* Add a few documentation comments while at it

Change-Id: Ic4f2b5d473a440667a40e4d5f12f40877386b02f

11 years agoImprove documentation of maintenance scripts.
Alexandre Emsenhuber [Thu, 9 Aug 2012 16:06:18 +0000 (18:06 +0200)]
Improve documentation of maintenance scripts.

Change-Id: I21b4fb873e88026108754eb7206e62c82648df0e

11 years agoMerge "Fix issue in SpecialCachedPage: only save cache when initialized"
IAlex [Thu, 9 Aug 2012 17:25:25 +0000 (17:25 +0000)]
Merge "Fix issue in SpecialCachedPage: only save cache when initialized"

11 years agoMerge "(bug 12701) Use diff of all unseen revisions in the "new messages" bar."
Aaron Schulz [Thu, 9 Aug 2012 16:59:57 +0000 (16:59 +0000)]
Merge "(bug 12701) Use diff of all unseen revisions in the "new messages" bar."

11 years agoMerge "Minor bits of documentation updates to upload code"
Siebrand [Thu, 9 Aug 2012 15:31:57 +0000 (15:31 +0000)]
Merge "Minor bits of documentation updates to upload code"

11 years agoMinor bits of documentation updates to upload code
Reedy [Thu, 9 Aug 2012 15:20:09 +0000 (16:20 +0100)]
Minor bits of documentation updates to upload code

Including hint for bug 39195

Change-Id: I4cdab97011330c12a943112f6c05134362d26a82

11 years agoFix issue in SpecialCachedPage: only save cache when initialized
jeroendedauw [Thu, 9 Aug 2012 14:40:09 +0000 (16:40 +0200)]
Fix issue in SpecialCachedPage: only save cache when initialized

Change-Id: I5a63857c297fbf3055ea6e5d0524dac8fd251411

11 years agoFollowup for bug 39099
Reedy [Thu, 9 Aug 2012 13:54:46 +0000 (14:54 +0100)]
Followup for bug 39099

If we're not passed an array, try and make it one..

Change-Id: I269848d08893cecfb0ac4de87a3155c916981a8d

11 years agoAdded missing @since and @return tags so other people dont have to waste their time...
jeroendedauw [Thu, 9 Aug 2012 12:29:46 +0000 (14:29 +0200)]
Added missing @since and @return tags so other people dont have to waste their time figuring it out as well

Change-Id: I84e75da7bdbf30b57368eca0051b1aa664afc798

11 years ago[FileBackend] Moved filerepo/backend/ up to filebackend
Aaron Schulz [Thu, 9 Aug 2012 01:16:31 +0000 (18:16 -0700)]
[FileBackend] Moved filerepo/backend/ up to filebackend

Change-Id: I62ba23bd22e0f177fb48acaf6bcc38cbffacd3e7

11 years agoMerge "Added another parser test for headings."
GWicke [Wed, 8 Aug 2012 20:21:57 +0000 (20:21 +0000)]
Merge "Added another parser test for headings."

11 years agoFix title inside form on Special:ListFiles
umherirrender [Wed, 8 Aug 2012 20:07:34 +0000 (22:07 +0200)]
Fix title inside form on Special:ListFiles

The form reused the title from the query, but when calling the page with
a subpage as parameter (Special:ListFiles/User), than the title contains
this subpage also, that looks not good, when resubmit the form.

This way is a copy from Special:AllMessages.

Change-Id: I431be530ad65e36c26c5a02fe78e436254131592

11 years agoPHP Warning: Invalid argument supplied for foreach() in /www/w/includes/Uri.php...
Reedy [Wed, 8 Aug 2012 20:09:32 +0000 (21:09 +0100)]
PHP Warning:  Invalid argument supplied for foreach() in /www/w/includes/Uri.php on line 261

Change-Id: I05e34c4f0f9f31165b29b7ea1fda4417d6c96508

11 years agoAdded another parser test for headings.
Subramanya Sastry [Wed, 8 Aug 2012 19:44:39 +0000 (14:44 -0500)]
Added another parser test for headings.

Change-Id: I6a559f5355b3c2da385306a3e5451803f8a2ec86

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 8 Aug 2012 19:13:56 +0000 (19:13 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I1d49283bdf6051d0562a1a57ef8923b274f179be

11 years agoMerge "(bug 24521) Move hard coded "code error!" to messages"
IAlex [Wed, 8 Aug 2012 18:35:28 +0000 (18:35 +0000)]
Merge "(bug 24521) Move hard coded "code error!" to messages"

11 years agoMerge "Add a MagicWordArray::getNames() function"
Demon [Wed, 8 Aug 2012 18:20:19 +0000 (18:20 +0000)]
Merge "Add a MagicWordArray::getNames() function"

11 years agoMerge "[LockManager] Cleaned up DBLockManager and reduced code duplication."
Demon [Wed, 8 Aug 2012 18:15:18 +0000 (18:15 +0000)]
Merge "[LockManager] Cleaned up DBLockManager and reduced code duplication."

11 years agoMerge "(bug 38987) mediawiki.api.parse.test: Fix test breakage"
Catrope [Wed, 8 Aug 2012 18:12:45 +0000 (18:12 +0000)]
Merge "(bug 38987) mediawiki.api.parse.test: Fix test breakage"

11 years ago[Database] Various DB cleanups.
Aaron Schulz [Sat, 16 Jun 2012 05:24:59 +0000 (22:24 -0700)]
[Database] Various DB cleanups.

* Removed unused and obsolete set() and safeQuery() functions.
* Removed unused deprecated constructor functions.
* Removed unused limitResultForUpdate() cruft function.
* Removed unused standardSelectDistinct(), it's better to just follow the standard for all queries.
* Removed other cruft functions unused by core/extensions.
* Made some internal functions protected.

Change-Id: I90be88ea740834a417a17d7751f1be7bac4eae4e

11 years ago(bug 38987) mediawiki.api.parse.test: Fix test breakage
Timo Tijhof [Tue, 7 Aug 2012 23:54:34 +0000 (01:54 +0200)]
(bug 38987) mediawiki.api.parse.test: Fix test breakage

The direct html comparison is not stable enough due to interference
if Tidy. Working around by doing a dom comparison instead of raw
html.

Change-Id: I62e39e0b05e3f9b5f78e2ac28a6f3ca0b608d152

11 years agoRevision and WikiPage cleanup with IDBAccessObject interface.
Aaron Schulz [Wed, 8 Aug 2012 06:22:49 +0000 (23:22 -0700)]
Revision and WikiPage cleanup with IDBAccessObject interface.

* Replaced WikiPage::DATA_FROM_* constants with IDBAccessObject ones.
* Renamed IDBAccessObject constants a bit for visual consistency.
* Removed AVOID_MASTER parameter and replaced calling instances with READ_NORMAL.
  Instead of getting page_latest from the master and the revision from a
  slave, just get it all from the master in one RTT. Most callers used
  AVOID_MASTER (and now READ_NORMAL), so this case is barely hit anymore.

Change-Id: Ifbefdcd4490094b38e49bbb46c95fdb71b5c9e1a

11 years agoAdd a MagicWordArray::getNames() function
Reedy [Sat, 4 Aug 2012 23:47:23 +0000 (00:47 +0100)]
Add a MagicWordArray::getNames() function

Minor documentation fixes too

Change-Id: Iabf858c30d45073cb82da398d6f9e6f5bb310b34

11 years agoReplace $wgDBerrorLogInUTC with a $wgDBerrorLogTZ variable which
Platonides [Fri, 13 Jul 2012 18:15:41 +0000 (20:15 +0200)]
Replace $wgDBerrorLogInUTC with a $wgDBerrorLogTZ variable which
can be set to any other timezone.
Also avoids the ugly default-changing that was being used by c15605.

Change-Id: I7a5086f84310f50a1929e07bd2e6527a518424b2

11 years agoMerge "Allow session expiry time to be configured"
Reedy [Wed, 8 Aug 2012 12:49:19 +0000 (12:49 +0000)]
Merge "Allow session expiry time to be configured"

11 years agoMerge "Follow-up I47412b67: pass an array of query parameters to Linker::link()"
Nikerabbit [Wed, 8 Aug 2012 09:43:09 +0000 (09:43 +0000)]
Merge "Follow-up I47412b67: pass an array of query parameters to Linker::link()"

11 years agoMerge "(bug 39099) Changed error-levels in Uri.php"
Nikerabbit [Wed, 8 Aug 2012 08:50:00 +0000 (08:50 +0000)]
Merge "(bug 39099) Changed error-levels in Uri.php"

11 years agoFollow-up I47412b67: pass an array of query parameters to Linker::link()
Alexandre Emsenhuber [Wed, 8 Aug 2012 08:42:17 +0000 (10:42 +0200)]
Follow-up I47412b67: pass an array of query parameters to Linker::link()

Spotted by Daniel Werner in that change.

Change-Id: I8ded52b8285b2af0f69cc586abe532ea56cc18bb

11 years agoMerge "Pass the 'returntoquery' parameter on cookie check."
Nikerabbit [Wed, 8 Aug 2012 07:38:04 +0000 (07:38 +0000)]
Merge "Pass the 'returntoquery' parameter on cookie check."

11 years agoMerge "Remove unused variables/function values returned"
IAlex [Wed, 8 Aug 2012 06:13:08 +0000 (06:13 +0000)]
Merge "Remove unused variables/function values returned"

11 years agoMerge ".gitignore: Add .DS_Store for Mac OS X; Organize and a-Z sort."
IAlex [Wed, 8 Aug 2012 05:59:51 +0000 (05:59 +0000)]
Merge ".gitignore: Add .DS_Store for Mac OS X; Organize and a-Z sort."

11 years agomediawiki.user: Reduce repetition of code
helder.wiki [Wed, 1 Aug 2012 15:21:36 +0000 (12:21 -0300)]
mediawiki.user: Reduce repetition of code

Created a local utility function getUserInfo(), which is called by
both mw.user.getGroups and mw.user.getRights.

This function uses the same API request to get both pieces of
information.

Also reduces the number of jQuery.Callbacks instances by
using it directly instead of jQuery.Deffered with '.always()'.

Change-Id: I590175dba1c9761da19a84efe69a5305220d8eb7

11 years agoAllow session expiry time to be configured
Tim Starling [Wed, 8 Aug 2012 01:20:30 +0000 (11:20 +1000)]
Allow session expiry time to be configured

When $wgSessionsInObjectCache is enabled, use a configurable expiry time
instead of a hard-coded one-hour expiry.

Change-Id: Ia51962176d30fd87e298c47ec347a143cad80772

11 years agoMerge "Allow session storage to be configured independently"
Aaron Schulz [Wed, 8 Aug 2012 00:35:59 +0000 (00:35 +0000)]
Merge "Allow session storage to be configured independently"

11 years agoAllow session storage to be configured independently
Tim Starling [Tue, 7 Aug 2012 05:25:46 +0000 (15:25 +1000)]
Allow session storage to be configured independently

* Introduce $wgSessionCacheType to allow the session storage to be
  configured independently of $wgMemc.
* Renamed $wgSessionsInMemcached to $wgSessionsInObjectCache to reflect
  the new versatility.
* Modernized the relevant code, removing the explicit require_once(),
  used the autoloader instead. Moved it to ObjectCacheSessionHandler.
* Tested with memcached, external sharded MySQL and APC, it all seems to
  work just fine.

Change-Id: I473334bb56cafb4e21ac1c1304d69095676fc0c4

11 years ago.gitignore: Add .DS_Store for Mac OS X; Organize and a-Z sort.
Timo Tijhof [Tue, 7 Aug 2012 23:58:58 +0000 (01:58 +0200)]
.gitignore: Add .DS_Store for Mac OS X; Organize and a-Z sort.

Change-Id: Idddfac5af757aa2869a2db25f10ca7ef6f4820a9

11 years agoRemove unused variables/function values returned
Reedy [Tue, 7 Aug 2012 23:47:25 +0000 (00:47 +0100)]
Remove unused variables/function values returned

Fix trailing whitespace

Change-Id: I53abf75e142f0166032b98e4adb3dabe06643017

11 years ago(bug 39099) Changed error-levels in Uri.php
Tyler Anthony Romeo [Tue, 7 Aug 2012 23:16:22 +0000 (19:16 -0400)]
(bug 39099) Changed error-levels in Uri.php

Switched component aliases and invalid URLs to wfDebug()
instead of wfWarn() so that it fails gracefully. Also
changed Uri::setComponents() to throw an exception for
invalid components instead of warning in order to be
the same as the other methods.

Change-Id: I2f2b552f8b13b7063c6b85b6a02d05eaba470b90
Signed-off-by: Tyler Anthony Romeo <tylerromeo@gmail.com>
11 years agoMerge "Follow-up SVN r98012: pass Title objects to LogEventsList::showLogExtract()."
Aaron Schulz [Tue, 7 Aug 2012 20:58:45 +0000 (20:58 +0000)]
Merge "Follow-up SVN r98012: pass Title objects to LogEventsList::showLogExtract()."

11 years agoMerge "Set form name for HTMLForms in FormAction subclasses."
IAlex [Tue, 7 Aug 2012 20:51:18 +0000 (20:51 +0000)]
Merge "Set form name for HTMLForms in FormAction subclasses."

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 7 Aug 2012 20:13:58 +0000 (20:13 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Followup c17651/bug 39032"
Reedy [Tue, 7 Aug 2012 20:12:51 +0000 (20:12 +0000)]
Merge "Followup c17651/bug 39032"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 7 Aug 2012 20:06:21 +0000 (20:06 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I7f355864088419d9fa96788a2b329c858457f183

11 years agoMerge "Added some docs, fixed some docs and made implicit checks explicit"
Aaron Schulz [Tue, 7 Aug 2012 19:45:40 +0000 (19:45 +0000)]
Merge "Added some docs, fixed some docs and made implicit checks explicit"

11 years agoMerge "Linker::link() prints deprecated warning if $query is a string"
Aaron Schulz [Tue, 7 Aug 2012 19:31:42 +0000 (19:31 +0000)]
Merge "Linker::link() prints deprecated warning if $query is a string"

11 years agoFollowup c17651/bug 39032
Reedy [Tue, 7 Aug 2012 18:13:55 +0000 (19:13 +0100)]
Followup c17651/bug 39032

makeHelpMsgHelper made a list of "allowed generators" at the same
time as generating stuff that was used to build the api help docs.

Change-Id: Idcc0b19ff62ab8da95c09c75a5222d3116ed0dc5

11 years agoimprove wfStripIllegalFilenameChars()'s readability
Waldir Pimenta [Tue, 7 Aug 2012 19:09:26 +0000 (20:09 +0100)]
improve wfStripIllegalFilenameChars()'s readability

make the preg_replace regex more readable,
and expand documentation a little.

Change-Id: Id26d9d42be7d3f2780e82da27dd2477d62d8e106

11 years ago(bug 33037) Special:newfiles treat its subpage parameter as a limit
Brian Wolff [Sun, 8 Jul 2012 17:02:35 +0000 (14:02 -0300)]
(bug 33037) Special:newfiles treat its subpage parameter as a limit

This restores the older behaviour of Special:newfiles. This allows
people to easily include variable sized galleries via
{{Special:newfiles/12}} syntax (people could of course previously do
{{special:newfiles|limit=12}} but less people know that.

Also makes IndexPager::setLimit validate the limit in the same way
it validates the limit coming from a url, and makes it so that
calling setLimit takes precedence over its built in determine the limit
code.

p.s. This is my first commit in our great glourious git future, so
let me know if i did anything wrong

Change-Id: I7fc148e56e43b7c453a1a9559ef74b8b3119c6fe

11 years ago(bug 11142) Improve file ext error reporting in API upload
Brad Jorsch [Thu, 19 Jul 2012 16:54:05 +0000 (12:54 -0400)]
(bug 11142) Improve file ext error reporting in API upload

The API action=upload returns a generic error message when one or more
of the file extensions are blacklisted. It should return a more
informative message, and also return the list of blacklisted extensions
in a machine-readable format.

This changeset introduces a new message,
"api-error-filetype-banned-type", which is to
"api-error-filetype-banned" what "filetype-banned-type" is to
"filetype-banned". As a starting point, I've copied (with minor changes)
the existing filetype-banned-type message to
api-error-filetype-banned-type for all languages for which both
api-error-filetype-banned and filetype-banned-type are currently given.

This changeset also incidentally fixes an internal server error with
format=xml when the filetype-banned error is returned by the API.

Change-Id: I6b0c58fbc5b19aa55286c56fa7da2195ea683ae0

11 years agoPass the 'returntoquery' parameter on cookie check.
Alexandre Emsenhuber [Tue, 7 Aug 2012 17:24:03 +0000 (19:24 +0200)]
Pass the 'returntoquery' parameter on cookie check.

Change-Id: I6d80ac4ec6a129f7670b046ec5fe4ab35fc4e352

11 years agoAdded WebRequest::getMethod() to get the HTTP method of the request.
Alexandre Emsenhuber [Tue, 7 Aug 2012 06:33:41 +0000 (08:33 +0200)]
Added WebRequest::getMethod() to get the HTTP method of the request.

This is to replace the usage of $_SERVER['REQUEST_METHOD'].

Change-Id: I45084254c5452b00b0665df78628cfd214e39cab

11 years agoMerge "Allowing Message objects to be passed as error page title."
IAlex [Tue, 7 Aug 2012 16:22:49 +0000 (16:22 +0000)]
Merge "Allowing Message objects to be passed as error page title."

11 years agoAllowing Message objects to be passed as error page title.
Tyler Anthony Romeo [Mon, 6 Aug 2012 21:07:24 +0000 (17:07 -0400)]
Allowing Message objects to be passed as error page title.

Changed OutputPage::showErrorPage() so that the title parameter
can be either a string or a Message object, just like the
message parameter. This allows titles that take parameters.

Change-Id: Icb7f7b0db8599984774f438333b60d66956b6075
Signed-off-by: Tyler Anthony Romeo <tylerromeo@gmail.com>
11 years agoLinker::link() prints deprecated warning if $query is a string
Daniel Werner [Thu, 5 Jul 2012 13:58:42 +0000 (15:58 +0200)]
Linker::link() prints deprecated warning if $query is a string

Change-Id: I47412b67b964ff0d868f181903628de3fd41365a

11 years agoMerge "Add a Uri class."
Aaron Schulz [Tue, 7 Aug 2012 03:37:30 +0000 (03:37 +0000)]
Merge "Add a Uri class."

11 years agoAdd a Uri class.
Daniel Friesen [Mon, 2 Apr 2012 01:54:25 +0000 (18:54 -0700)]
Add a Uri class.

Add a Uri class matching our mw.Uri JS class for handling uris.
This class should be helpful in a bunch of places where we end up doing manual
concatenation of things like the path + '?' + query of a url parsed with wfParseUrl.

[tylerromeo@gmail.com: Removed cat() function, fixed wfWarn() usage for aliases
 and added visibility to all functions. Also added test for aliases.]
Signed-off-by: Tyler Romeo <tylerromeo@gmail.com>
Change-Id: Iefdedb7c80cf1d4aab58050edab3ab44ba868a58

11 years agoMerge "Fix wrong return value in Preprocessor::getChildrenOfType"
Tim Starling [Tue, 7 Aug 2012 00:37:53 +0000 (00:37 +0000)]
Merge "Fix wrong return value in Preprocessor::getChildrenOfType"

11 years agoRefreshLinksJob performance tweaks.
Aaron Schulz [Thu, 2 Aug 2012 04:19:00 +0000 (21:19 -0700)]
RefreshLinksJob performance tweaks.

* Made refreshLinksJob2 always spawn smaller jobs. This can reduce
  the problem of all runners doing the same refresh jobs by increasing the
  granularity of the work to single pages parses per job.
* Avoid master queries when fetching the latest revision for refresh links jobs.
  Also avoid the master for template fetching on parse. A LoadBalancer waitFor()
  call is used instead. The main reason for hitting the master to fetch templates
  was this job itself.
* Fixed bug in refreshLinksJob2 where one missing page would cause all the
  remaining updates for pages to be aborted.
* Factored out some code duplication between the two refresh links job classes.

Change-Id: Ieca51567a888f50a6f15b6c2606323da80d6584b

11 years ago[FileBackend] Fixed curl call broken by 10ec7a1.
Aaron [Mon, 6 Aug 2012 22:02:33 +0000 (15:02 -0700)]
[FileBackend] Fixed curl call broken by 10ec7a1.

Change-Id: I661d2f586d3e3177c2f233153787597095872535

11 years agoMerge "Always save the cache if stuff was added to it - dont require deriving class...
Aaron Schulz [Mon, 6 Aug 2012 21:49:41 +0000 (21:49 +0000)]
Merge "Always save the cache if stuff was added to it - dont require deriving class to call save"

11 years agoMerge "Memcached PHP client improvements"
Aaron Schulz [Mon, 6 Aug 2012 21:45:38 +0000 (21:45 +0000)]
Merge "Memcached PHP client improvements"