lhc/web/wiklou.git
10 years agoMerge "Make tableNamesWithUseIndexOrJOIN() and makeUpdateOptions() protected"
jenkins-bot [Fri, 10 Jan 2014 12:24:39 +0000 (12:24 +0000)]
Merge "Make tableNamesWithUseIndexOrJOIN() and makeUpdateOptions() protected"

10 years agoMerge "Update formatting"
jenkins-bot [Fri, 10 Jan 2014 12:09:48 +0000 (12:09 +0000)]
Merge "Update formatting"

10 years agoMerge "Specify DBMasterPos::getMasterPos()"
jenkins-bot [Fri, 10 Jan 2014 12:09:04 +0000 (12:09 +0000)]
Merge "Specify DBMasterPos::getMasterPos()"

10 years agoMerge "Rename $desired_schema to $desiredSchema"
jenkins-bot [Fri, 10 Jan 2014 11:58:17 +0000 (11:58 +0000)]
Merge "Rename $desired_schema to $desiredSchema"

10 years agoMerge "Ensure variables in database classes are defined, used and correctly cased"
jenkins-bot [Fri, 10 Jan 2014 11:57:32 +0000 (11:57 +0000)]
Merge "Ensure variables in database classes are defined, used and correctly cased"

10 years agoMerge "Remove superfluous spaces and doc tweak"
jenkins-bot [Fri, 10 Jan 2014 11:45:55 +0000 (11:45 +0000)]
Merge "Remove superfluous spaces and doc tweak"

10 years agoMerge "Update documentation for database related classes"
jenkins-bot [Fri, 10 Jan 2014 11:45:10 +0000 (11:45 +0000)]
Merge "Update documentation for database related classes"

10 years agoAdd ability to mark hooks as deprecated
aude [Wed, 8 Jan 2014 21:32:21 +0000 (22:32 +0100)]
Add ability to mark hooks as deprecated

Change-Id: I8fd29e97a2b5d02746b572a9c315fbe54faf36f2

10 years agoOptimized copyFileBackend to use MD5 from listing if given (e.g. Swift)
Aaron Schulz [Fri, 10 Jan 2014 00:33:31 +0000 (16:33 -0800)]
Optimized copyFileBackend to use MD5 from listing if given (e.g. Swift)

Change-Id: Ic495d6c8c6dffb0b34e6b5eefb8de4d057a51069

10 years agoRename Watchlist request parameters for consistency with RC's ones
Bartosz Dziewoński [Fri, 11 Oct 2013 18:20:49 +0000 (20:20 +0200)]
Rename Watchlist request parameters for consistency with RC's ones

This is necessary for us to be later able to have them be inherited
(and use FormOptions). Old parameters (and thus old URIs) will continue
to work (but will never be used in newly generated links).

However, this breaks compatibility of the SpecialWatchlistQuery hook, as
the keys of the array it accepts as the last parameter have changed due to
the renaming. This could be worked around easily if we deem it worth
worrying about.

Change-Id: Ia6b2047006c86256ec22d7eda92a23be2058f1a3

10 years agoMerge "Fixed file props test failure for MemoryFileBackend"
jenkins-bot [Thu, 9 Jan 2014 22:22:26 +0000 (22:22 +0000)]
Merge "Fixed file props test failure for MemoryFileBackend"

10 years agoMerge "Fixed http_build_query warnings on PHP < 5.4"
jenkins-bot [Thu, 9 Jan 2014 22:09:18 +0000 (22:09 +0000)]
Merge "Fixed http_build_query warnings on PHP < 5.4"

10 years agoFixed http_build_query warnings on PHP < 5.4
Aaron Schulz [Thu, 9 Jan 2014 21:38:55 +0000 (13:38 -0800)]
Fixed http_build_query warnings on PHP < 5.4

* bug: 59880

Change-Id: I2eae4bed17a72b58ac33f3538dd7d16f4356a3a0

10 years agoMerge "Make it easy to get the number of the currently running child"
jenkins-bot [Thu, 9 Jan 2014 21:13:47 +0000 (21:13 +0000)]
Merge "Make it easy to get the number of the currently running child"

10 years agoMerge "Remove classes and functions deprecated in MediaWiki 1.17"
jenkins-bot [Thu, 9 Jan 2014 21:11:51 +0000 (21:11 +0000)]
Merge "Remove classes and functions deprecated in MediaWiki 1.17"

10 years agoMerge "Fixed bogus var usage in SwiftFileBackend"
jenkins-bot [Thu, 9 Jan 2014 20:52:07 +0000 (20:52 +0000)]
Merge "Fixed bogus var usage in SwiftFileBackend"

10 years agoFixed bogus var usage in SwiftFileBackend
Aaron Schulz [Thu, 9 Jan 2014 20:39:13 +0000 (12:39 -0800)]
Fixed bogus var usage in SwiftFileBackend

Change-Id: Ia0dec914208cb3100b7f5bbd2291985eac05dc02

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 9 Jan 2014 20:28:22 +0000 (20:28 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I1d3dbbb188d207e00b3a82bd7ff8379b7ffe8eeb

10 years agoMerge "API: Allow special pages for action=parse&title="
jenkins-bot [Thu, 9 Jan 2014 19:41:21 +0000 (19:41 +0000)]
Merge "API: Allow special pages for action=parse&title="

10 years agoFixed file props test failure for MemoryFileBackend
Aaron Schulz [Thu, 9 Jan 2014 19:04:20 +0000 (11:04 -0800)]
Fixed file props test failure for MemoryFileBackend

Change-Id: Ia593023569e3874e11598c38961a68a0da75883f

10 years agoLimit searches at 500 per page
Chad Horohoe [Thu, 9 Jan 2014 18:38:19 +0000 (10:38 -0800)]
Limit searches at 500 per page

* 5000 search results in a single page is too many to be useful and
  just results in a slow page load. If you need that many results use
  the API.
* Adds new parameter to WebRequest::getLimitOffset() to allow making
  the 5000 limit configurable by callers

Change-Id: I7c12e4b0526db6453aaba5d589ee1c01a54b72d4

10 years agoMerge "filebackend: Added supported for retrieving file metadata/headers"
jenkins-bot [Thu, 9 Jan 2014 18:36:43 +0000 (18:36 +0000)]
Merge "filebackend: Added supported for retrieving file metadata/headers"

10 years agoAPI: Allow special pages for action=parse&title=
Brad Jorsch [Thu, 9 Jan 2014 16:53:08 +0000 (11:53 -0500)]
API: Allow special pages for action=parse&title=

Iec98e472 had broken this. Use the same strategy as in
MediaWiki::initializeArticle to work around the problem.

Bug: 49477
Change-Id: Ib272b1f9395f6adade505ac7c6a24f9a4bff2779

10 years agoMerge "Add validation of the content model edited by EditPage"
jenkins-bot [Thu, 9 Jan 2014 15:02:08 +0000 (15:02 +0000)]
Merge "Add validation of the content model edited by EditPage"

10 years agoMerge "Exclude toggle button of collapsible elements from user selection"
jenkins-bot [Thu, 9 Jan 2014 12:53:22 +0000 (12:53 +0000)]
Merge "Exclude toggle button of collapsible elements from user selection"

10 years agoMerge "Replace deprecated User::editToken with User::getEditToken (1.19)"
jenkins-bot [Thu, 9 Jan 2014 04:34:29 +0000 (04:34 +0000)]
Merge "Replace deprecated User::editToken with User::getEditToken (1.19)"

10 years agoMerge "Declare visibility on all properties in ForkController"
jenkins-bot [Thu, 9 Jan 2014 04:08:00 +0000 (04:08 +0000)]
Merge "Declare visibility on all properties in ForkController"

10 years agoMerge "Made use of proper backend-fail-store message"
jenkins-bot [Thu, 9 Jan 2014 00:31:05 +0000 (00:31 +0000)]
Merge "Made use of proper backend-fail-store message"

10 years agoFixed minor unit test dir leakage
Aaron Schulz [Wed, 8 Jan 2014 23:59:39 +0000 (15:59 -0800)]
Fixed minor unit test dir leakage

Change-Id: I78cf483dde5078d4fad4e1738d8bb8a8f634e3b1

10 years agoMade use of proper backend-fail-store message
Aaron Schulz [Wed, 8 Jan 2014 23:42:44 +0000 (15:42 -0800)]
Made use of proper backend-fail-store message

Change-Id: I89d275926530b16f5660863608b89541d72c9f33

10 years agoMerge "Added sanity check for doGetLocalCopyMulti() in Swift"
jenkins-bot [Wed, 8 Jan 2014 23:09:23 +0000 (23:09 +0000)]
Merge "Added sanity check for doGetLocalCopyMulti() in Swift"

10 years agoAdded sanity check for doGetLocalCopyMulti() in Swift
Aaron Schulz [Wed, 8 Jan 2014 23:02:32 +0000 (15:02 -0800)]
Added sanity check for doGetLocalCopyMulti() in Swift

* This better handles the case of /tmp being full or something

Change-Id: Ibf4fed0fd053f82ef5ede46b6c2ec72feee95699

10 years agoMake it easy to get the number of the currently running child
Chad Horohoe [Wed, 8 Jan 2014 22:18:03 +0000 (14:18 -0800)]
Make it easy to get the number of the currently running child

Change-Id: I2071f04b6f01e640c850c6470cfa9f2f48f62eac

10 years agoDeclare visibility on all properties in ForkController
Chad Horohoe [Wed, 8 Jan 2014 22:15:09 +0000 (14:15 -0800)]
Declare visibility on all properties in ForkController

Grepped all of core and extensions, and nothing uses them

Change-Id: I8e4f191aafffdbc2254e39bed81a5209cdf29795

10 years agoMerge "Add hook to allow extensions to modify the LonelyPages query"
jenkins-bot [Wed, 8 Jan 2014 22:14:30 +0000 (22:14 +0000)]
Merge "Add hook to allow extensions to modify the LonelyPages query"

10 years agoAdd hook to allow extensions to modify the LonelyPages query
kaldari [Wed, 8 Jan 2014 19:51:54 +0000 (11:51 -0800)]
Add hook to allow extensions to modify the LonelyPages query

First step to solving bug 3483.

Bug: 3483
Change-Id: Ie8c5765ddc6b6028836024c426a0369e6966b25e

10 years agoMerge "Remove "or other" option for stubtreshold"
jenkins-bot [Wed, 8 Jan 2014 21:31:11 +0000 (21:31 +0000)]
Merge "Remove "or other" option for stubtreshold"

10 years agofilebackend: Added supported for retrieving file metadata/headers
Aaron Schulz [Mon, 30 Sep 2013 07:12:10 +0000 (00:12 -0700)]
filebackend: Added supported for retrieving file metadata/headers

* This can be useful for carrying over metadata when copying files around
* Also fixed a bug in sanitizeHdrs() for Swift (broken content-disposition)

Change-Id: I4534e9acac2b306086797b3677f85c05b98e39fc

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 8 Jan 2014 20:34:03 +0000 (20:34 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Iaee33fbd265807b18879b6f9873d1d4344dfb878

10 years agoMerge "Removed cloudfiles dependency in SwiftFileBackend"
jenkins-bot [Wed, 8 Jan 2014 18:57:57 +0000 (18:57 +0000)]
Merge "Removed cloudfiles dependency in SwiftFileBackend"

10 years agoMerge "Remove searchlimit preference"
jenkins-bot [Wed, 8 Jan 2014 18:49:22 +0000 (18:49 +0000)]
Merge "Remove searchlimit preference"

10 years agoMerge "Do not suggest to use unused local vars"
jenkins-bot [Wed, 8 Jan 2014 18:34:10 +0000 (18:34 +0000)]
Merge "Do not suggest to use unused local vars"

10 years agoDo not suggest to use unused local vars
Siebrand Mazeland [Wed, 8 Jan 2014 18:27:10 +0000 (19:27 +0100)]
Do not suggest to use unused local vars

Change-Id: I4c2ab60054304593a9fd873b28e160b9d07442f0

10 years agoMerge "Don't suggest if the search term is a known title"
jenkins-bot [Wed, 8 Jan 2014 18:19:33 +0000 (18:19 +0000)]
Merge "Don't suggest if the search term is a known title"

10 years agoMerge "Merge RELEASE-NOTES-1.22 into HISTORY"
Bartosz Dziewoński [Wed, 8 Jan 2014 17:08:24 +0000 (17:08 +0000)]
Merge "Merge RELEASE-NOTES-1.22 into HISTORY"

10 years agoMerge RELEASE-NOTES-1.22 into HISTORY
Bartosz Dziewoński [Wed, 8 Jan 2014 16:42:21 +0000 (17:42 +0100)]
Merge RELEASE-NOTES-1.22 into HISTORY

About time someone did this. One would think it's somebody's
responsibility, eh.

Change-Id: I8649940e006aa191662095a5f787728985ea5c9c

10 years agoFix missing apostrophe in maintenance/generateJsonI18n.php
Hydriz [Wed, 8 Jan 2014 12:52:43 +0000 (20:52 +0800)]
Fix missing apostrophe in maintenance/generateJsonI18n.php

Change-Id: I3f678df09853bfdb6295985c81d4469024aecfbb

10 years agoCall to a member function getCommonMetaArray() on a non-object at
Reedy [Tue, 7 Jan 2014 20:04:14 +0000 (20:04 +0000)]
Call to a member function getCommonMetaArray() on a non-object at
File.php on line 586

Bug: 59785
Change-Id: I7163f3fd122922a28519b7cb1d3d4cd4b81165ee

10 years agoUse file handle caching in newSequentialPerNodeIDs()
Aaron Schulz [Fri, 3 Jan 2014 19:24:11 +0000 (11:24 -0800)]
Use file handle caching in newSequentialPerNodeIDs()

* This is now similar to the other methods in that regard

Change-Id: I36163fa7f1bc13d493df9d77b139a99881d0de45

10 years agoReplace deprecated User::editToken with User::getEditToken (1.19)
Siebrand Mazeland [Wed, 8 Jan 2014 08:25:32 +0000 (09:25 +0100)]
Replace deprecated User::editToken with User::getEditToken (1.19)

Change-Id: Ic845c2a62488ea44a306c83652b503fa2c862d8c

10 years agoRemoved cloudfiles dependency in SwiftFileBackend
Aaron Schulz [Sun, 8 Dec 2013 23:19:00 +0000 (15:19 -0800)]
Removed cloudfiles dependency in SwiftFileBackend

* Added a new curl multi wrapper under libs/.
* Used the new MultiHttpClient class instead of CloudFiles
* Removed CDN related config and code as it does not work.
  well due to mutating files and tiny purge rate limits by CDNs.
* Also removed the unused and esoteric 'swiftAnonUser' parameter.
* Support concurrent 'describe' operations.
* Set ACLs on containers on intial PUT instead of in two steps.
  Previously if the second step failed, prepare() would never
  set the ACLs correctly since it aborts if the container exists.
* Improve token deletion to only trigger on 401s rather than other
  random errors like 50X timeouts.
* Removed duplicative getResponse* code by just using one closure
  called for both the concurrent and serial cases. Both cases are
  now funneled through doExecuteOpHandlesInternal().
* Add the MD5 to stat info, as it might be useful for speeding up
  the copy scripts in some cases (when both backends have md5 set).
* Avoid use of trigger_error() since there is a swift log group.
* A few other small code cleanups.

Change-Id: I1adb3e2df6df8cf01d3ad74158de96ea9a79da2e

10 years agoRemove searchlimit preference
Chad Horohoe [Tue, 7 Jan 2014 00:20:07 +0000 (16:20 -0800)]
Remove searchlimit preference

Change-Id: Ib3dd2ba54261514b827d12a21536392530c7e02e

10 years agoMake imagelinks work like templatelinks
Brad Jorsch [Sat, 4 Jan 2014 19:26:26 +0000 (14:26 -0500)]
Make imagelinks work like templatelinks

Due to bug 17259 (which is fixed in a better way in Id44d566a),
imagelinks only records the redirect and not the actual image used when
an image redirect is referenced. This causes various problems, such as
cascading protection not working through image redirects.

It makes more sense for imagelinks to work like tempaltelinks, recording
both so that things like cascading protection don't have to care about
image redirects explicitly.

Comparing imagelinks to templatelinks also reveals a few places
(WikiPage::doDeleteUpdates, WikiPage::doCascadeProtectionUpdates) that
should be triggering a LinksUpdate if the image links changed.

Bug: 23002
Bug: 23542
Bug: 26503
Change-Id: I64fe7d25646cae2c8213211893c6f821f3504dbf

10 years agoMake WikiPage::$mPreparedEdit public
Reedy [Tue, 7 Jan 2014 22:59:17 +0000 (22:59 +0000)]
Make WikiPage::$mPreparedEdit public

Partial revert of I2c34baaf8b64b204444efa1bfa6ea356e0124c54

Change-Id: Id4e90c612941ff2bdb50d7a68f4e18b004c9f744

10 years agoMerge "Send cache purges for action=raw after editing user css/js"
jenkins-bot [Tue, 7 Jan 2014 22:57:11 +0000 (22:57 +0000)]
Merge "Send cache purges for action=raw after editing user css/js"

10 years agoMerge "Move redirect rendering into WikitextContent"
jenkins-bot [Tue, 7 Jan 2014 22:45:02 +0000 (22:45 +0000)]
Merge "Move redirect rendering into WikitextContent"

10 years agoMoved HashRing to /libs
Aaron Schulz [Tue, 31 Dec 2013 23:31:26 +0000 (15:31 -0800)]
Moved HashRing to /libs

Change-Id: I0b74b386f7459f550816f99aa7e00970c3cff4c7

10 years agoMerge "Moved MappedIterator to /libs and changed exception type"
jenkins-bot [Tue, 7 Jan 2014 21:17:12 +0000 (21:17 +0000)]
Merge "Moved MappedIterator to /libs and changed exception type"

10 years agoMerge "Migrate redirectToFragment() from wikibits.js to own module"
jenkins-bot [Tue, 7 Jan 2014 21:16:14 +0000 (21:16 +0000)]
Merge "Migrate redirectToFragment() from wikibits.js to own module"

10 years agoMoved MappedIterator to /libs and changed exception type
Aaron Schulz [Tue, 31 Dec 2013 23:33:15 +0000 (15:33 -0800)]
Moved MappedIterator to /libs and changed exception type

Now throws UnexpectedValueException rather than MWException.

Change-Id: Id466b66f43db97c5837030d166b9abd66fd56e0d

10 years agoMerge "Add ProfilerMwprof"
jenkins-bot [Tue, 7 Jan 2014 21:11:11 +0000 (21:11 +0000)]
Merge "Add ProfilerMwprof"

10 years agoAdd ProfilerMwprof
Ori Livneh [Mon, 6 Jan 2014 21:24:44 +0000 (13:24 -0800)]
Add ProfilerMwprof

ProfilerMwprof is similar to ProfilerSimpleUDP in that accumulated profiling
samples are emitted to a remote host using UDP. Profiling data for sections
that are called multiple times are aggregating using the RunningStat class I
introduced in Ifedda276d; this provides the ability to compute timing variance
across multiple requests without storing individual values for a second pass
through the data.

Entries are serialized into MessagePack arrays, using the implementation added
in Id2833c5a9. The first element of each array is an entry type specifier.
Currently two types exist: TYPE_SINGLE (single sample; no statistical moments)
and TYPE_RUNNING (aggregated entry with statistical moments). Additional entry
formats may be specified in the future.

TYPE_SINGLE entries have the format:

  [ TYPE_SINGLE, name (string), CPU time (float), wall time (float ]

TYPE_RUNNING entries have the format:

  [ TYPE_RUNNING, name (string), count (int),
    CPU m1 (float), CPU m2 (float), CPU min (float), CPU max (float),
    wall m1 (float), wall m2 (float), wall min (float), wall max (float) ]

To help reviewers test this change, I have a trivial Python script that can
serve as the back-end: <https://gist.github.com/atdt/8290191>

Change-Id: I688e7231dad9fcc9d29954afacc47f55d521f58d

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 7 Jan 2014 20:34:54 +0000 (20:34 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I0b92294dfb157ec75e1b116395de0181f9da707b

10 years agoDatabaseInstaller::setVarsFromRequest needs array
umherirrender [Tue, 7 Jan 2014 18:54:27 +0000 (19:54 +0100)]
DatabaseInstaller::setVarsFromRequest needs array

Method is not marked as var args.

Bug: 58434
Follow-Up: I920b0231db1b70b68c6c8907257c288a0e112668
Change-Id: Ief7f7c06e75efbe7ae1da13f5021a9062483f690

10 years agoMove redirect rendering into WikitextContent
Brad Jorsch [Sat, 4 Jan 2014 22:07:33 +0000 (17:07 -0500)]
Move redirect rendering into WikitextContent

There's no good reason for everything that wants to render a page to
have to test whether the page is a redirect and then call
Article::viewRedirect to get the fancy rendering instead of using the
ParserOutput. This logic can easily be moved into
WikitextContent::getParserOutput so callers can just use the
returned ParserOutput.

At the same time, we can handle "#REDIRECT [[File:Foo]]" and
"#REDIRECT [[Category:Foo]]" the way people expect, by recording the
link in pagelinks rather than imagelinks/categorylinks (although this
means fixing ImagePage's bug about assuming anything in imagelinks that
is a redirect is a redirect to the image too).

And we can finally fix bug 14323, too.

Bug: 14323
Bug: 17259
Bug: 27621
Bug: 42642
Bug: 50488
Change-Id: Id44d566a7ca35a1b9579d0c0e947877c980b0686
Followup: I1c7582d1bf7ec4184a45b00154e3dd5b39dd444b
Followup: I3653b608941813a73281f4f0545bea2487d43964

10 years agoRemove #mw_trackbacks CSS from shared.css.
Jack Phoenix [Tue, 7 Jan 2014 12:32:03 +0000 (14:32 +0200)]
Remove #mw_trackbacks CSS from shared.css.

This was historically used on [[MediaWiki:Trackbackbox]] (from where it was
moved to Article::addTrackbacks() in r47543, committed on 20 February 2009
by raymond), but the entire trackback feature was removed in r104051, committed on 23 November 2011.

The #mw_trackbacks definition was moved from various (skin-specific) CSS
files to here in r52404 (committed on 25 June 2009) by ialex.

Change-Id: I7809de83ebb537d4739ef89265c32935aa036e1d

10 years agoMerge "Update docs for CLDRPluralRuleEvaluator.php"
jenkins-bot [Tue, 7 Jan 2014 10:45:52 +0000 (10:45 +0000)]
Merge "Update docs for CLDRPluralRuleEvaluator.php"

10 years agoRemove superfluous spaces and doc tweak
Siebrand Mazeland [Tue, 7 Jan 2014 10:31:22 +0000 (11:31 +0100)]
Remove superfluous spaces and doc tweak

Change-Id: I3755b31a1fc9b9930fc41ef44242d0bd12dc26d8

10 years agoUpdate PHPUnit version check to 3.7.0
Adrian Lang [Tue, 7 Jan 2014 09:30:49 +0000 (10:30 +0100)]
Update PHPUnit version check to 3.7.0

assertContainsOnlyInstancesOf has been added in PHPUnit 3.7.0, so we need to
have that version for running the tests.

Bug: 59759
Change-Id: I25dbd377b97ec0b9062d3c8cf495ba3f06956ac4

10 years agoMerge "Add sequence support for externallinks table"
jenkins-bot [Tue, 7 Jan 2014 05:27:24 +0000 (05:27 +0000)]
Merge "Add sequence support for externallinks table"

10 years agoAPI: Add prop=contributors
Brad Jorsch [Thu, 14 Nov 2013 21:07:52 +0000 (16:07 -0500)]
API: Add prop=contributors

Certain applications, such as the generation of PDFs, could use a list
of all non-anonymous contributors to the page (as well as a count of
anonymous contributors) without crawling the output of prop=revisions.
This patch adds a prop module to retrieve this information.

Including the IP addresses of anonymous contributors is not realistically
possible without further schema changes, so that is not done here.
Additionally, revisions with DELETED_USER will be skipped entirely.

Change-Id: Iaff50dfb09016154901a5197aa14eb9f8febcbc5

10 years agoMerge "MWException doesn't care about $wgTitle anymore"
jenkins-bot [Mon, 6 Jan 2014 23:47:15 +0000 (23:47 +0000)]
Merge "MWException doesn't care about $wgTitle anymore"

10 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Mon, 6 Jan 2014 23:38:11 +0000 (23:38 +0000)]
Merge "Sync up with Parsoid parserTests."

10 years agoRevert Id39d4457a: Remove experiment code for moduleStorage
Ori Livneh [Mon, 6 Jan 2014 23:18:18 +0000 (15:18 -0800)]
Revert Id39d4457a: Remove experiment code for moduleStorage

Because of a bug affecting the production cluster during the initial run of the
experiment, we need to rerun it. This patch reverts Id39d4457a, restoring the
experiment setup code. As before, it will be removed at the conclusion of the
experiment.

Change-Id: Ifa97d36d3af589ca0586baad2702fb7b58b246e5

10 years agoInclude namespaces in {{CASCADINGSOURCES}} output
Jackmcbarn [Mon, 6 Jan 2014 21:53:43 +0000 (16:53 -0500)]
Include namespaces in {{CASCADINGSOURCES}} output

Include the namespace of pages in the output of the CASCADINGSOURCES
parser function.

Change-Id: Ie39ecfb52965c36349e601bee092590a147b5a03

10 years agoMerge "Mechanism for renaming/aliasing classes"
jenkins-bot [Mon, 6 Jan 2014 21:27:54 +0000 (21:27 +0000)]
Merge "Mechanism for renaming/aliasing classes"

10 years agoDon't suggest if the search term is a known title
Nik Everett [Mon, 6 Jan 2014 16:57:08 +0000 (11:57 -0500)]
Don't suggest if the search term is a known title

Also tell the SearchEngine that we don't *need* the suggestion.  Some will
make it any way and we'll ignore it.  Cirrus will be able to save some time
by not building the suggestion.

Bug: 59666
Change-Id: Ifd5bafe25a715db9d44cf0fee2ba2607f6c270a2

10 years agoUpdate formatting
Siebrand Mazeland [Mon, 6 Jan 2014 18:41:54 +0000 (19:41 +0100)]
Update formatting

Change-Id: I27e43c19906edc732b4976b8426ed34bad63622b

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 6 Jan 2014 19:58:18 +0000 (19:58 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I1b1e7c920d7a71f8c2230dbacf9ce4b51bb1d2fe

10 years agoMerge "Add CASCADINGSOURCES parser function"
jenkins-bot [Mon, 6 Jan 2014 19:04:53 +0000 (19:04 +0000)]
Merge "Add CASCADINGSOURCES parser function"

10 years agoSpecify DBMasterPos::getMasterPos()
Siebrand Mazeland [Mon, 6 Jan 2014 18:39:39 +0000 (19:39 +0100)]
Specify DBMasterPos::getMasterPos()

Change-Id: Id6268193d08737e2599ec84496527b3be348dfda

10 years agoMake tableNamesWithUseIndexOrJOIN() and makeUpdateOptions() protected
Siebrand Mazeland [Mon, 6 Jan 2014 18:31:26 +0000 (19:31 +0100)]
Make tableNamesWithUseIndexOrJOIN() and makeUpdateOptions() protected

Per parents.

Change-Id: I4419e19abac84f8f4e397c4ebc9d1cf2e1f6a945

10 years agoRename $desired_schema to $desiredSchema
Siebrand Mazeland [Mon, 6 Jan 2014 18:24:44 +0000 (19:24 +0100)]
Rename $desired_schema to $desiredSchema

Change-Id: I0f421964e94c95ead931bf8c9faa1667dc2f7e06

10 years agoEnsure variables in database classes are defined, used and correctly cased
Siebrand Mazeland [Mon, 6 Jan 2014 18:23:05 +0000 (19:23 +0100)]
Ensure variables in database classes are defined, used and correctly cased

Change-Id: I12065b2c2bae1c000edac3c92d1db0c03fc40f90

10 years agoUpdate documentation for database related classes
Siebrand Mazeland [Fri, 27 Dec 2013 01:54:51 +0000 (02:54 +0100)]
Update documentation for database related classes

Change-Id: I364e192e2624f89a91dcb19e371ce3412142a95f

10 years agoMerge AssertEdit extension into core
Kunal Mehta [Wed, 16 Oct 2013 22:27:59 +0000 (15:27 -0700)]
Merge AssertEdit extension into core

Added &assert=user and &assert=bot for all API modules.

Some functionality was dropped:
* assert='exists': the edit API already has &nocreate/&createonly
* nassert parameter: there is no usecase for checking that your
  account is logged out or not flagged
* assert=true/false: If you want to test a failing assertion, log out
* assert=test: Not useful
* Checking edits via index.php

The error format was changed from:
{"edit": {"assert": "bot", "result": "Failure"}}
to the standard format of API errors in an 'errors' array
using the codes: 'assertuserfailed' and 'assertbotfailed'.

Bug: 27841
Bug: 53106
Change-Id: Ia4815168548fea3dbf1c305792a451374f2a3b7e

10 years agoUpdate docs for CLDRPluralRuleEvaluator.php
Siebrand Mazeland [Mon, 6 Jan 2014 16:49:44 +0000 (17:49 +0100)]
Update docs for CLDRPluralRuleEvaluator.php

Change-Id: I072fe3e58edc7585cb56483513e8447221af1083

10 years agoMechanism for renaming/aliasing classes
Kevin Israel [Fri, 22 Nov 2013 04:13:03 +0000 (23:13 -0500)]
Mechanism for renaming/aliasing classes

Sometimes it is desirable to change a class name that is still referenced
in extensions or config files (e.g. for consistency, as in I507ba00a).
PHP's class_alias() function can help in preserving backward compatibility;
however, creating an alias first requires that the class be loaded.

Hence this is implemented in AutoLoader. Lazy loading continues to work,
the list of class names is still maintained in a central location, and
optionally, deprecation warnings can be generated.

Change-Id: I1d3fb04a448647b5be10bed7fec05238b9fc6fc7

10 years agoExclude toggle button of collapsible elements from user selection
Fomafix [Mon, 6 Jan 2014 15:05:39 +0000 (15:05 +0000)]
Exclude toggle button of collapsible elements from user selection

Bug: 34445
Change-Id: I53e224a6cf60a55c40ababf9c05ce2dff3b8f179

10 years agoAdd reference to the current user to the PageRenderingHash hook
physikerwelt [Fri, 3 Jan 2014 17:05:24 +0000 (17:05 +0000)]
Add reference to the current user to the PageRenderingHash hook

To generate a user-dependent cache key it makes sense to pass
a reference to the user object, since $wgUser is deprecated.

Change-Id: I32a1df52912292230852c31d69968eeb312a4a97

10 years agoMake message key optional
raymond [Mon, 6 Jan 2014 13:56:49 +0000 (14:56 +0100)]
Make message key optional

https://gerrit.wikimedia.org/r/#/c/65299/

Change-Id: I2c27359696a346d92761452f598e8fe00d88156a

10 years agoCleanup HTMLCheckMatrixTest.
addshore [Fri, 15 Nov 2013 23:45:43 +0000 (00:45 +0100)]
Cleanup HTMLCheckMatrixTest.

Fix Covers tags, looks like we need more testcases
for all other HTML* classes

Change-Id: I166464da3373b45564dd770feecacafacb301604

10 years agoGender aliases for user namespaces in French and Cajun French
Dereckson [Mon, 6 Jan 2014 12:09:18 +0000 (13:09 +0100)]
Gender aliases for user namespaces in French and Cajun French

NS_USER:
* User identifies as male: Utilisateur
* User identifies as female: Utilisatrice

NS_USER_TALK:
* User identifies as male: Discussion utilisateur
* User identifies as female: Discussion utilisatrice

Languages with fallback to French:
* applies to frc (Cajun French). This language also uses « Utilisateur »
  and « Utilisatric » to translate “user”.
* doesn't apply to bm, ff, frp, ht, ln, mg, pcd, sg, ty, wa, wo.

This change is a follow-up of I5825f750a58dd196f907ad848c74f82130fd857d.

Change-Id: Icb8c787ebfa0e7dfd8289260225fef045fc1b0cb

10 years agoReplace usage of deprecated SpecialPage::getTitle() function
aude [Mon, 6 Jan 2014 11:22:47 +0000 (12:22 +0100)]
Replace usage of deprecated SpecialPage::getTitle() function

Change-Id: Ibd301b5d039026495778d7638fd272997221101b

10 years agoSet Italian (it) as fallback for Corsican (co)
Federico Leva [Mon, 6 Jan 2014 09:50:11 +0000 (10:50 +0100)]
Set Italian (it) as fallback for Corsican (co)

As requested by both active translators:
<https://translatewiki.net/wiki/Thread:Portal_talk:Co/Fallback_to_Italian>
One is French-speaking and the other Italian-speaking: turns out
this fallback is not controversial at all.

Change-Id: I050c84b0cd435379dd5ecbf22d2128101775bf12

10 years agoMerge "Revert "L10n: gender aliases for user namespaces in French""
jenkins-bot [Mon, 6 Jan 2014 09:25:16 +0000 (09:25 +0000)]
Merge "Revert "L10n: gender aliases for user namespaces in French""

10 years agoRevert "L10n: gender aliases for user namespaces in French"
Siebrand [Mon, 6 Jan 2014 09:20:29 +0000 (09:20 +0000)]
Revert "L10n: gender aliases for user namespaces in French"

This incorrectly also set gender based namespaces for at least 12 more
locales. That is too high negative impact. Please resubmit without
also impacting languages that fall back to French by adding:

 // Remove French aliases
 $namespaceGenderAliases = array();

See MessagesLbe.php for example.

This reverts commit cadbf1fc5fd094bcc5e5e4055ddce4c8dec84020.

Change-Id: I5825f750a58dd196f907ad848c74f82130fd857d

10 years agoMerge "Cleanup of includes/rcfeed"
jenkins-bot [Mon, 6 Jan 2014 04:03:01 +0000 (04:03 +0000)]
Merge "Cleanup of includes/rcfeed"

10 years agoNo need to return true/false from AutoLoader
Kevin Israel [Sat, 4 Jan 2014 19:25:44 +0000 (14:25 -0500)]
No need to return true/false from AutoLoader

Partially reverts r36942 (7e627faec6bd).

Change-Id: I5b3dfd148863413025c71de5fadef1cb5bd70dce

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 5 Jan 2014 20:08:28 +0000 (20:08 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie4cf8986d2fc3bdf1d485958c7171b0b86cefee2