lhc/web/wiklou.git
11 years agoMove plural rules of Samogitian(sgs) to plurals-mediawiki.xml
Santhosh Thottingal [Mon, 18 Mar 2013 08:11:46 +0000 (13:41 +0530)]
Move plural rules of Samogitian(sgs) to plurals-mediawiki.xml

* CLDR does not define plural rules for sgs.
* Port the plural rules present in LanguageSgs.php to CLDR plural
  definition syntax
* Remove LanguageSgs.php
* Update the tests, reorder/rename the plural form names

Change-Id: I44658402d69a6805cdfd189fe780eadee94056c7

11 years agoRemove error suppression in Exif::isRational
umherirrender [Sun, 17 Mar 2013 14:57:31 +0000 (15:57 +0100)]
Remove error suppression in Exif::isRational

preg_match throws warning, when getting a array as input, but there is a
is_array check, so no need for error suppression

Change-Id: Ie7f180f45c04e8e396186cd6a5a9e40e2c94a80a

11 years agoMerge "Revert "Refactored use of $wgMemc in JobQueueDB to use a field.""
Tim Starling [Mon, 18 Mar 2013 05:44:12 +0000 (05:44 +0000)]
Merge "Revert "Refactored use of $wgMemc in JobQueueDB to use a field.""

11 years agoRevert "Refactored use of $wgMemc in JobQueueDB to use a field."
Tim Starling [Mon, 18 Mar 2013 05:43:59 +0000 (05:43 +0000)]
Revert "Refactored use of $wgMemc in JobQueueDB to use a field."

This reverts commit 7293699561f8751c66d55697e63b13a18653ac6b

Unit tests fail.

Change-Id: Iac8025844b37c584e451a4120e54898ae4f2524e

11 years ago[LockManager] Refactor lock TTL code to base class.
Aaron Schulz [Wed, 13 Mar 2013 07:41:22 +0000 (00:41 -0700)]
[LockManager] Refactor lock TTL code to base class.

* Also made the TTL configurable.

Change-Id: I713979267fe7bd92ac6cd5fe4d4168d20e539c75

11 years agoRefactored use of $wgMemc in JobQueueDB to use a field.
Aaron Schulz [Sun, 10 Mar 2013 08:06:02 +0000 (00:06 -0800)]
Refactored use of $wgMemc in JobQueueDB to use a field.

Change-Id: Ic2a0a16142abdc5a971729fe550c10c1b8fa42b9

11 years agoa43f751 removed the usage of $wgMiserMode
Platonides [Wed, 13 Mar 2013 15:10:19 +0000 (16:10 +0100)]
a43f751 removed the usage of $wgMiserMode

Change-Id: I5528dba582d218721324431015bd930b9b6ab57e

11 years agojquery.tablesorter: Fix explodeRowspans
Brad Jorsch [Mon, 19 Nov 2012 14:47:11 +0000 (09:47 -0500)]
jquery.tablesorter: Fix explodeRowspans

$.tablesorter's explodeRowspans works ok for simple tables, but row
headers or unusual spanning structures will confuse it.

This rewrite makes it more robust.

Bug: 41889
Change-Id: Icb674f7eece053435ca9525d45709579df14cc74

11 years agojquery.tablesorter: Fix broken getElementSortKey()
Brad Jorsch [Fri, 8 Mar 2013 02:08:16 +0000 (21:08 -0500)]
jquery.tablesorter: Fix broken getElementSortKey()

Change I3e9898f3 introduced changes to
getElementText()/getElementSortKey() that broke certain behavior with
respect to tables having colspanned cells. Restore the old behavior for
these cases.

Change-Id: I18be2e6c1f0ab926ff4c795530600b52bc6488c0

11 years ago(Bug 42461) Remove call to "new Database()"
Platonides [Sat, 26 Jan 2013 15:38:29 +0000 (16:38 +0100)]
(Bug 42461) Remove call to "new Database()"

 * Refactored LoadBalancer::reportConnectionError()
 * Removed PHP4-style reference from DatabaseError constructors
 * Allowed to not pass a database to the DBError family of exceptions.

Change-Id: If9570b45ea7285de2b8b2391e704bc01f76be48a

11 years ago(bug 45054) Fix rsvg converter command line when thumbnailing.
Ed Sanders [Fri, 15 Feb 2013 21:54:47 +0000 (13:54 -0800)]
(bug 45054) Fix rsvg converter command line when thumbnailing.

Change-Id: Ia6c1d4e5d61629e9651495ee92fe1c7298a50ef1

11 years agoMerge "Remove spaces between parentheses in function calls"
jenkins-bot [Mon, 18 Mar 2013 00:22:11 +0000 (00:22 +0000)]
Merge "Remove spaces between parentheses in function calls"

11 years agoMerge "Set initial language and variant user preferences to user's preferred variant...
jenkins-bot [Mon, 18 Mar 2013 00:11:19 +0000 (00:11 +0000)]
Merge "Set initial language and variant user preferences to user's preferred variant on user registration"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 17 Mar 2013 19:51:22 +0000 (19:51 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I36833fa0e34d515906005009fcfe7ffb7f59a3e9

11 years agoRemove spaces between parentheses in function calls
umherirrender [Sun, 17 Mar 2013 15:13:22 +0000 (16:13 +0100)]
Remove spaces between parentheses in function calls

Change-Id: If8ec665a01b566fa5189dfcc810b2d9a17f371e1

11 years ago(bug 46239) jquery.makeCollapsible: don't fail if no options given
MatmaRex [Sun, 17 Mar 2013 10:24:18 +0000 (11:24 +0100)]
(bug 46239) jquery.makeCollapsible: don't fail if no options given

Also a typo elsewhere. That's what you get when coding at 2 AM.

Change-Id: I8dd4f0d06cc5dbf7fe67f2b584c9afe8f5d1b36a

11 years agoMerge "Readd GENDER to english logentry messages"
jenkins-bot [Sun, 17 Mar 2013 08:47:04 +0000 (08:47 +0000)]
Merge "Readd GENDER to english logentry messages"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 16 Mar 2013 20:59:30 +0000 (20:59 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ie28bd2d1bce13b5a78eeb8573d8b5b9527b1afeb

11 years agoReadd GENDER to english logentry messages
umherirrender [Sat, 16 Mar 2013 20:12:02 +0000 (21:12 +0100)]
Readd GENDER to english logentry messages

Was removed due to performance reason, but some fixed are applied in
meantime, so there should not be a problem on adding the GENDER back.

This is a (manually) partial revert of r110909

bug: 24156
Change-Id: I8139c51bb8a1ea4fa69a1327c46d347ea043cc9f

11 years agoSpecial:RevisionDelete: DatabaseBase::makeList: empty input
umherirrender [Sat, 16 Mar 2013 19:07:29 +0000 (20:07 +0100)]
Special:RevisionDelete: DatabaseBase::makeList: empty input

bug:45211
Change-Id: I3777c1332aa2a0dd9e9cf4b643b53f31db3f5e91

11 years agoMerge "Default $wgContentHandlerUseDB to true"
Daniel Kinzler [Sat, 16 Mar 2013 14:33:30 +0000 (14:33 +0000)]
Merge "Default $wgContentHandlerUseDB to true"

11 years ago(bug 44486) Rephrase password reset messages to remove 'reminder' language
Alex Monk [Wed, 30 Jan 2013 01:07:48 +0000 (01:07 +0000)]
(bug 44486) Rephrase password reset messages to remove 'reminder' language

Change-Id: Ie2a18ddb92b8c992bc72ea4263a43e6928681041

11 years agoMerge "Cache Revision::selectFields() call result"
jenkins-bot [Sat, 16 Mar 2013 03:38:42 +0000 (03:38 +0000)]
Merge "Cache Revision::selectFields() call result"

11 years agoCache Revision::selectFields() call result
Reedy [Sat, 16 Mar 2013 01:44:44 +0000 (01:44 +0000)]
Cache Revision::selectFields() call result

Change-Id: Ia41208658b601f68e77a0e1fa36c13e28ea8b9be

11 years agoMerge "jquery.makeCollapsible: add plainMode support"
jenkins-bot [Sat, 16 Mar 2013 01:33:09 +0000 (01:33 +0000)]
Merge "jquery.makeCollapsible: add plainMode support"

11 years agoMerge "jquery.makeCollapsible: add a few explicit options to the jQuery plugin"
jenkins-bot [Sat, 16 Mar 2013 01:08:47 +0000 (01:08 +0000)]
Merge "jquery.makeCollapsible: add a few explicit options to the jQuery plugin"

11 years agoMerge "jquery.makeCollapsible: move helper functions to the outer scope"
jenkins-bot [Sat, 16 Mar 2013 01:06:31 +0000 (01:06 +0000)]
Merge "jquery.makeCollapsible: move helper functions to the outer scope"

11 years agoMerge "jquery.makeCollapsible: clean up the handler toggling logic"
jenkins-bot [Sat, 16 Mar 2013 00:59:45 +0000 (00:59 +0000)]
Merge "jquery.makeCollapsible: clean up the handler toggling logic"

11 years agojquery.makeCollapsible: add plainMode support
MatmaRex [Fri, 15 Mar 2013 20:10:08 +0000 (21:10 +0100)]
jquery.makeCollapsible: add plainMode support

When .makeCollapsible() is used on a <ol>/<ul> list, the toggler is
inserted as the zeroth list item and clicking is causes all the other
list items to be hidden separately, one by one.

This hiding behavior is applied even when using custom togglers placed
outside of the list. This has some pretty serious performance
considerations when applied to large lists or tables (more than
~25 items/rows).

Enter plainMode. In combination with custom togglers, it makes all
types of elements to be treated the same and hidden/shown as a whole.

Change-Id: Idd9429b20d70741af72657feef26e1c95c76d51f

11 years agojquery.makeCollapsible: add a few explicit options to the jQuery plugin
MatmaRex [Fri, 15 Mar 2013 10:25:03 +0000 (11:25 +0100)]
jquery.makeCollapsible: add a few explicit options to the jQuery plugin

Add a few options to the jQuery plugin to allow for explicit passing
of various options in addition to the conventions used now (via data-
attributes or magic id/class combinations).

Change-Id: Ic498e7a3b2d2e964bda8d31a70f71cda08560cec

11 years agojquery.makeCollapsible: move helper functions to the outer scope
MatmaRex [Thu, 14 Mar 2013 20:15:41 +0000 (21:15 +0100)]
jquery.makeCollapsible: move helper functions to the outer scope

They do not directly use any variables defined inside
$.fn.makeCollapsible (although they used to), so let's move them to
the appropriate place.

Also indent the body of the immediately-invoked wrapper function.

Change-Id: I3d5f33b4a3ed8bd72c5f55c4d9fa545e4f3bd8c4

11 years agojquery.makeCollapsible: clean up the handler toggling logic
MatmaRex [Wed, 13 Mar 2013 21:42:55 +0000 (22:42 +0100)]
jquery.makeCollapsible: clean up the handler toggling logic

Merged three functions which did almost the same thing into one,
togglingHandler(), which takes a few options instead.

Left the old functions as wrappers for now, I'll clean them up in
another commit.

Change-Id: Id3f457a84064382f2d962e9ac4d926827de93126

11 years agoAdd id for domain list on user create form
Ryan Lane [Fri, 15 Mar 2013 22:15:17 +0000 (15:15 -0700)]
Add id for domain list on user create form

The user login form already has this id for the domain list, so
I'm adding it for the create form as well.

Change-Id: I1eec31c461a5c76565acf1e0bbfa07f367591678

11 years agoMerge "Make update.php and install.php use wfPHPVersionError() and reorganise it"
jenkins-bot [Fri, 15 Mar 2013 20:55:49 +0000 (20:55 +0000)]
Merge "Make update.php and install.php use wfPHPVersionError() and reorganise it"

11 years agoMerge "Fixed importScopedSession() and moved exportUserSession() to RequestContext."
jenkins-bot [Fri, 15 Mar 2013 20:48:55 +0000 (20:48 +0000)]
Merge "Fixed importScopedSession() and moved exportUserSession() to RequestContext."

11 years agoFixed importScopedSession() and moved exportUserSession() to RequestContext.
Aaron Schulz [Thu, 14 Mar 2013 22:43:42 +0000 (15:43 -0700)]
Fixed importScopedSession() and moved exportUserSession() to RequestContext.

* Renamed WebRequest::exportUserSession -> RequestContext::exportSession.
  Updated the only callers of this new function.
* Init the user with User::newFromId() instead of relying on the session
  (which breaks when things like CentralAuth are enabled).
* Made RequestContext::exportSession() include the user ID.
* Removed now-redundant user ID checks in upload jobs.
* Added unit tests for the session import function.

Change-Id: I543e6766f7a8a828ea5d270328c3bc7738c6fe94

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 15 Mar 2013 19:32:37 +0000 (19:32 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I66bc1bec2e64fef9dee6562c9e2a7268c8cdb1cc

11 years ago(bug 45436) Update autonym of the Pali (pi) language
Amir E. Aharoni [Mon, 18 Feb 2013 18:31:02 +0000 (00:01 +0530)]
(bug 45436) Update autonym of the Pali (pi) language

Change-Id: I078eb210eacb0f4c89a8858636bd5b84da68e79d

11 years agoMerge "API: Remove useless PARAM_REQUIRED = false"
jenkins-bot [Fri, 15 Mar 2013 16:54:38 +0000 (16:54 +0000)]
Merge "API: Remove useless PARAM_REQUIRED = false"

11 years ago$.tablesorter: remove and inline getTextFromRowAndCellIndex()
MatmaRex [Fri, 4 Jan 2013 17:27:36 +0000 (18:27 +0100)]
$.tablesorter: remove and inline getTextFromRowAndCellIndex()

It introduced unnecessary indirection and was only called once.

Change-Id: I519cc1f04a581d41aa23229182c55466ed7757c8

11 years agoAPI: Remove useless PARAM_REQUIRED = false
umherirrender [Fri, 15 Mar 2013 15:35:51 +0000 (16:35 +0100)]
API: Remove useless PARAM_REQUIRED = false

Also fix the condition in getPossibleErrors to avoid reporting of:
<error code="nosectiontitle" info="The sectiontitle parameter must be
set" />

Change-Id: Ifd808a040590ddffc0527da5ef0cc8cacdd008d9

11 years agoMerge "Added a --cache option to mctest.php and mcc.php."
jenkins-bot [Fri, 15 Mar 2013 13:56:43 +0000 (13:56 +0000)]
Merge "Added a --cache option to mctest.php and mcc.php."

11 years agoDefaultSettings: Add @since annotations.
Timo Tijhof [Thu, 14 Mar 2013 18:55:14 +0000 (19:55 +0100)]
DefaultSettings: Add @since annotations.

Based on information from:
- https://www.mediawiki.org/wiki/Manual:$wgConf
- https://www.mediawiki.org/wiki/Manual:$wgVersion
- https://www.mediawiki.org/wiki/Manual:$wgCanonicalServer
- https://www.mediawiki.org/wiki/Manual:$wgUsePathInfo
- etc.

Change-Id: If359c57493de8efa3beb92b75e2ece9ca4a3a828

11 years agoMerge "mwdocgen.php: Exit with exit code of passthru(doxygen)"
jenkins-bot [Fri, 15 Mar 2013 07:57:14 +0000 (07:57 +0000)]
Merge "mwdocgen.php: Exit with exit code of passthru(doxygen)"

11 years agomwdocgen.php: Implement --version option.
Timo Tijhof [Fri, 15 Mar 2013 06:10:04 +0000 (07:10 +0100)]
mwdocgen.php: Implement --version option.

So that the job that runs it can pass along what it should
display (e.g. branch, tag, hash etc. whatever is appropiate
for the context of that run).

Change-Id: I1d5b6266e49a71672b0a53069e6ea6bb4658c3d2

11 years agoAdded a --cache option to mctest.php and mcc.php.
Aaron Schulz [Fri, 15 Mar 2013 06:09:24 +0000 (23:09 -0700)]
Added a --cache option to mctest.php and mcc.php.

* This lets the server list used be that of different object caches.

Change-Id: I88039370affec6e431c931337d220f7472f6eaeb

11 years agoFixed E_STRICT warning:
Aaron Schulz [Thu, 14 Mar 2013 23:46:30 +0000 (16:46 -0700)]
Fixed E_STRICT warning:
Strict Standards: Declaration of UploadFromChunks::stashFile() should be
compatible with UploadBase::stashFile(User $user = NULL)

Change-Id: If14d7aeacb23df16bff94c5989cde4ee31c1d105

11 years agoTweaked MessageCache locks to handle exceptions better.
ASchulz [Tue, 12 Mar 2013 22:27:12 +0000 (15:27 -0700)]
Tweaked MessageCache locks to handle exceptions better.

Change-Id: I3066d8dbebc97abcc0567d71625f995d62549b4c

11 years agomwdocgen.php: Exit with exit code of passthru(doxygen)
Timo Tijhof [Fri, 15 Mar 2013 05:43:56 +0000 (06:43 +0100)]
mwdocgen.php: Exit with exit code of passthru(doxygen)

Previously it just naturally exited which means even if the
doxygen bin doesn't exist, it'll return "success".

Bug: 46151
Change-Id: Ie1e3d956ce5d3e1f28c7c829bb57596113f07c4a

11 years agoRemoved user table JOIN from ActiveUsers query.
Aaron Schulz [Wed, 27 Feb 2013 22:47:51 +0000 (14:47 -0800)]
Removed user table JOIN from ActiveUsers query.

Change-Id: I2d6d2154a277d256db09e2a851424ba026862be9

11 years agoMerge "Fix default value of the SpecialWatchlistFilters hook"
jenkins-bot [Thu, 14 Mar 2013 21:44:34 +0000 (21:44 +0000)]
Merge "Fix default value of the SpecialWatchlistFilters hook"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Thu, 14 Mar 2013 20:56:40 +0000 (20:56 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Format jquery.ui.button.css so it's easier to work with"
jenkins-bot [Thu, 14 Mar 2013 20:23:47 +0000 (20:23 +0000)]
Merge "Format jquery.ui.button.css so it's easier to work with"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 14 Mar 2013 20:15:42 +0000 (20:15 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I04422727b54789ca326360ec86c630076b9210ae

11 years agojquery.badge: Treat non-Latin variants of zero as zero as well.
Alex Monk [Tue, 19 Feb 2013 12:38:38 +0000 (12:38 +0000)]
jquery.badge: Treat non-Latin variants of zero as zero as well.

Bug: 45143
Change-Id: Ib8a36913df1ec4ae966551d1d5b8de712c34b96c

11 years agoCleaned up upload job error reporting.
Aaron Schulz [Thu, 14 Mar 2013 18:42:26 +0000 (11:42 -0700)]
Cleaned up upload job error reporting.

Change-Id: I2379d235eb9fed58412c9fefb9cabe56868395b9

11 years agomark UtfNormal::CleanUpTest as expensive
Antoine Musso [Thu, 14 Mar 2013 04:05:24 +0000 (05:05 +0100)]
mark UtfNormal::CleanUpTest as expensive

The CleanUpTest are a bit long and reach the medium timeout of 10
seconds.  Mark them as large would give them a 60 seconds timeout,
hopefully enough to generate code coverage.

Change-Id: Id6d13204428ec1810a9b56db76bed351bf45b950

11 years agotypo in @cover statement
Antoine Musso [Thu, 14 Mar 2013 03:56:42 +0000 (04:56 +0100)]
typo in @cover statement

PHP Code Coverage uses the @cover comment statement to limit code
coverage to some specific function.  The method reference lacked the
trailing 's' leading to an error when running coverage:

PHP_CodeCoverage_Exception: Trying to @cover not existing method
"Title::checkReadPermission".

Change-Id: Ie09e804039271ec8f0165c32dc7849ea4be8a3b9

11 years agoFix composer.json to prevent infinite loops.
Tyler Anthony Romeo [Wed, 6 Mar 2013 05:16:37 +0000 (00:16 -0500)]
Fix composer.json to prevent infinite loops.

So it turns out you're not supposed to specify the repository in
composer.json, as that's only for dependencies. Otherwise it will loop
infinitely.

The repository tag isn't for the current application, it's for
dependencies of the application. I've tried doing "composer install"
with MediaWiki master and it loops infinitely because it goes to the
repository, sees that it has a composer.json, reads it, sees that it has
a repository, etc.

This patch thus Remove the 'repositories' statement pointing to
Wikimedia gerrit installation which as added with 0ee7f355

Change-Id: I9a77d28f33a0b966f42c8c2e952b922809acc20d

11 years agoMerge "Implement htmlEqual QUnit helper (QUnit.assert.htmlEqual)"
jenkins-bot [Wed, 13 Mar 2013 23:57:38 +0000 (23:57 +0000)]
Merge "Implement htmlEqual QUnit helper (QUnit.assert.htmlEqual)"

11 years agoAllow having no serializer in RedisConnectionPool.
Aaron Schulz [Wed, 13 Mar 2013 21:28:06 +0000 (14:28 -0700)]
Allow having no serializer in RedisConnectionPool.

Change-Id: If367c26b6b19374d1445c406851e2c5d3e5cc634

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 13 Mar 2013 21:22:03 +0000 (21:22 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoChanging OutputPage param to a Context param in PageHistoryBeforeList
Kaldari [Wed, 13 Mar 2013 16:54:23 +0000 (09:54 -0700)]
Changing OutputPage param to a Context param in PageHistoryBeforeList

Change-Id: I348b449043fefba181e28486a07c4aa761bcef24

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 13 Mar 2013 20:49:13 +0000 (20:49 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Idb52d9bc126193a3afe66ca68bfbb3c4ca375fff

11 years agoMerge "servers => serves"
jenkins-bot [Wed, 13 Mar 2013 19:48:08 +0000 (19:48 +0000)]
Merge "servers => serves"

11 years agoservers => serves
Reedy [Wed, 13 Mar 2013 19:39:10 +0000 (19:39 +0000)]
servers => serves

Change-Id: Idff55d11850fe68c2ba0938e5944dfe53beee390

11 years agoMerge "Filtered "LOCK IN SHARE MODE" from SQLite"
jenkins-bot [Wed, 13 Mar 2013 18:36:30 +0000 (18:36 +0000)]
Merge "Filtered "LOCK IN SHARE MODE" from SQLite"

11 years agoMerge "Adjusting badge size per Vibha"
Kaldari [Wed, 13 Mar 2013 18:34:06 +0000 (18:34 +0000)]
Merge "Adjusting badge size per Vibha"

11 years agoFixes to Special:LinkSearch form
Alexandre Emsenhuber [Wed, 13 Mar 2013 17:08:55 +0000 (18:08 +0100)]
Fixes to Special:LinkSearch form

- Use Html class instead of Xml where possible
- Use Html class for <fieldset> generation, for consistency
- Add line breaks to the output for better readability
- Don't use $GLOBALS to access $wgScript

Change-Id: Ib11aa8ba3e3ef0e1ca07e0e3ac9605daa33f08a4

11 years agoMerge "getBools doesn't exist in Translate anymore"
jenkins-bot [Wed, 13 Mar 2013 16:26:33 +0000 (16:26 +0000)]
Merge "getBools doesn't exist in Translate anymore"

11 years agoMerge "Fix Ifb93e49b"
jenkins-bot [Wed, 13 Mar 2013 16:04:26 +0000 (16:04 +0000)]
Merge "Fix Ifb93e49b"

11 years agoFix Ifb93e49b
Alex Monk [Wed, 13 Mar 2013 15:43:27 +0000 (15:43 +0000)]
Fix Ifb93e49b

This commit caused a PHP notice if you tried to use diff=prev with an
oldid which was the first revision of the page.

Change-Id: I4c4ccb9a0c8d82e104723a2e72f1c699e2fc249b

11 years agoMerge "Handle certain errors in action=createaccount api module"
jenkins-bot [Wed, 13 Mar 2013 15:18:50 +0000 (15:18 +0000)]
Merge "Handle certain errors in action=createaccount api module"

11 years agoMerge "(bug 45937) API: Check amlang in meta=allmessages"
jenkins-bot [Wed, 13 Mar 2013 15:00:27 +0000 (15:00 +0000)]
Merge "(bug 45937) API: Check amlang in meta=allmessages"

11 years ago(bug 45937) API: Check amlang in meta=allmessages
Brad Jorsch [Tue, 12 Mar 2013 14:58:40 +0000 (10:58 -0400)]
(bug 45937) API: Check amlang in meta=allmessages

Language::factory() throws an exception if given a syntactically invalid
code. Check the code beforehand to generate a proper error message.

Bug: 45937
Change-Id: I521e6f7ffc44becb302fde33c1df3879baa4045a

11 years agoFiltered "LOCK IN SHARE MODE" from SQLite
Liam Edwards-Playne [Wed, 13 Mar 2013 10:25:59 +0000 (20:25 +1000)]
Filtered "LOCK IN SHARE MODE" from SQLite

"LOCK IN SHARE MODE" is a MySQL extension not supported
by SQLite.

Bug: 45650
Change-Id: I74af28e3f7bb0c37ea1cc9cd087a688ba7621e57

11 years agoMerge "Spellchecked /includes directory"
jenkins-bot [Wed, 13 Mar 2013 07:53:21 +0000 (07:53 +0000)]
Merge "Spellchecked /includes directory"

11 years agoSpellchecked /includes directory
Yuri Astrakhan [Wed, 13 Mar 2013 07:42:41 +0000 (03:42 -0400)]
Spellchecked /includes directory

* Ran spell-checker over code comments in /includes/
* A few spellchecking fixes for wfDebug() calls

Found one very strange (NOOP?) line in Linker.php - see "TODO: BUG?"

Change-Id: Ibb86b51073b980eda9ecce2cf0b8dd33f058adbf

11 years agoImplement htmlEqual QUnit helper (QUnit.assert.htmlEqual)
Matthew Flaschen [Wed, 6 Mar 2013 00:56:15 +0000 (16:56 -0800)]
Implement htmlEqual QUnit helper (QUnit.assert.htmlEqual)

Bug: 45526
Change-Id: I4d0ce6226f4ef73d659ba0635f2b2f49d8b0e9b5

11 years agoMerge "Add space between number and unit of measure"
jenkins-bot [Wed, 13 Mar 2013 06:45:00 +0000 (06:45 +0000)]
Merge "Add space between number and unit of measure"

11 years agoMerge "Allow first letter data to be invalidated"
Tim Starling [Wed, 13 Mar 2013 03:57:22 +0000 (03:57 +0000)]
Merge "Allow first letter data to be invalidated"

11 years agoAllow first letter data to be invalidated
Tim Starling [Wed, 13 Mar 2013 03:53:20 +0000 (14:53 +1100)]
Allow first letter data to be invalidated

Just a class constant for now, but that should suffice to deal with the
current emergency. Proper dependency tracking via the CacheDependency
hierarchy would be pretty cool in the long term.

Change-Id: Ibbe7fa2814434d4869aba20f628bd43269e611fa

11 years agoMerge "Adding output parameter to PageHistoryBeforeList hook"
jenkins-bot [Wed, 13 Mar 2013 02:18:36 +0000 (02:18 +0000)]
Merge "Adding output parameter to PageHistoryBeforeList hook"

11 years agoMerge "Adding hooks for thank you notification links"
jenkins-bot [Wed, 13 Mar 2013 01:59:16 +0000 (01:59 +0000)]
Merge "Adding hooks for thank you notification links"

11 years agoAdding output parameter to PageHistoryBeforeList hook
Kaldari [Tue, 12 Mar 2013 23:27:16 +0000 (16:27 -0700)]
Adding output parameter to PageHistoryBeforeList hook

This will allow us to easily add other RL modules to the page

Change-Id: I2ec00d44e37298ef91ab428759bda037072b0120

11 years agoRestore SET cl_timestamp=cl_timestamp
Tim Starling [Tue, 12 Mar 2013 23:18:12 +0000 (10:18 +1100)]
Restore SET cl_timestamp=cl_timestamp

Apparently cl_timestamp=cl_timestamp is a workaround for obscure
behaviour of the timestamp type in MySQL

Change-Id: I803f20bcf4e28e8e2833a07bcf00e7edc00ad84b

11 years agoReduce disruption during updateCollation.php
Tim Starling [Tue, 12 Mar 2013 00:26:12 +0000 (11:26 +1100)]
Reduce disruption during updateCollation.php

Have updateCollation.php order by cl_to, so that each category is
updated all at once. This minimises the time during which a category
will appear to be incorrectly sorted, while the maintenance script is in
progress.

Mark the cl_collation index as needing deletion, it was always pretty
pointless. You can't do much better than a full table scan when you're
changing the collation value on a wiki.

Increase the batch size since the lack of a cl_to,cl_from index means
that it will have to filesort each category. A larger batch size means
less sorts. As noted by Liangent on bug 45970, you can't order by
cl_sortkey since that will change during execution.

Also fix an inappropriate use of $wgMiserMode and remove a no-op from
the SET clause of the UPDATE.

Very lightly tested.

Change-Id: I19bc8d6701f5f78040aa9c521427ac98ef488d89

11 years agoMerge "Localisation updates from http://translatewiki.net."
Raimond Spekking [Tue, 12 Mar 2013 21:26:49 +0000 (21:26 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoHandle certain errors in action=createaccount api module
Brian Wolff [Sat, 9 Mar 2013 10:40:13 +0000 (06:40 -0400)]
Handle certain errors in action=createaccount api module

Certain errors (user blocked, user doesn't have permission)
were causing uncaught exceptions to be thrown in this api module.
Try to check for those cases first. Also added some errors
to the possible error list.

Change-Id: Id86984ade23a818317b942de3e9cf0ccdb43fba7

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 12 Mar 2013 20:48:21 +0000 (20:48 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Iad3494719f752a78d7b414fedaf9a36ae45f9d6e

11 years ago[FileBackend] Fixed "ignoreMissingSource" bug in multiwrite backend.
Aaron Schulz [Tue, 12 Mar 2013 20:39:40 +0000 (13:39 -0700)]
[FileBackend] Fixed "ignoreMissingSource" bug in multiwrite backend.

* Beefed up unit tests for this case and other "ignoreMissingSource" cases
  such as when the source container or parent directory do not exist.

Change-Id: Iea6dae2424edfd0c4367e5cff606c09a4e8a865b

11 years agoFix default value of the SpecialWatchlistFilters hook
Marius Hoch [Tue, 12 Mar 2013 20:14:06 +0000 (21:14 +0100)]
Fix default value of the SpecialWatchlistFilters hook

The documented default value of the SpecialWatchlistFilters hook
didn't work. Fixed this to work like the built in defaults.

This keeps the b/c with uses which default to false (the only
use I'm aware of is in FlaggedRevs and that defaults to false)

(I want to use this in Wikibase Client)

Change-Id: I79811e9f3e7431e3403cf93674667d624d3d4db2

11 years agoAdd space between number and unit of measure
Siebrand Mazeland [Tue, 12 Mar 2013 16:22:00 +0000 (17:22 +0100)]
Add space between number and unit of measure

Also update tests.

Spotted by Opraco in
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Bitrate-kilobits/en

Change-Id: I81ad428ebc8b2511b871bf98540bc74508f00939

11 years agoAdding hooks for thank you notification links
Kaldari [Thu, 7 Mar 2013 02:38:00 +0000 (18:38 -0800)]
Adding hooks for thank you notification links

These will allow Echo to add a 'thank' link next to the 'undo' links

Change-Id: Ifb93e49b30bb325ecd17ece9f36bcd83c63a2563

11 years ago(bug 44719) Remove mention of non-existing script in DefaultSettings.php
Alexandre Emsenhuber [Sun, 3 Mar 2013 17:40:46 +0000 (18:40 +0100)]
(bug 44719) Remove mention of non-existing script in DefaultSettings.php

maintenance/migrateCurStubs.php does not exist; and I was unable to find
any script that would achieve that functionnality.

Bug: 44719
Change-Id: I78d8a8aa95a5406bf5a979867bc12a9bb34907f6

11 years agoMerge "Normalise documentation in tests/selenium"
jenkins-bot [Tue, 12 Mar 2013 15:17:21 +0000 (15:17 +0000)]
Merge "Normalise documentation in tests/selenium"

11 years agoMerge "Correct case of Title::getPrefixedDBkey() calls"
jenkins-bot [Tue, 12 Mar 2013 15:13:21 +0000 (15:13 +0000)]
Merge "Correct case of Title::getPrefixedDBkey() calls"

11 years agoMerge "Documentation improvements in includes/actions"
jenkins-bot [Tue, 12 Mar 2013 15:11:12 +0000 (15:11 +0000)]
Merge "Documentation improvements in includes/actions"

11 years agoMerge "Don't use isset() to check whether an existing variable is null"
jenkins-bot [Tue, 12 Mar 2013 15:08:56 +0000 (15:08 +0000)]
Merge "Don't use isset() to check whether an existing variable is null"

11 years agoMerge "Changed formatting of "anontalkpagetext""
jenkins-bot [Tue, 12 Mar 2013 15:03:37 +0000 (15:03 +0000)]
Merge "Changed formatting of "anontalkpagetext""