lhc/web/wiklou.git
10 years agoVector: Rewrite vectorTabs with nesting
jrobson [Wed, 8 Jan 2014 17:59:18 +0000 (09:59 -0800)]
Vector: Rewrite vectorTabs with nesting

Change-Id: I598c90495b542996ab32209bfeaeb3d451d6d01e

10 years agoMerge "Vector: Rewrite footer styling with nesting"
jenkins-bot [Fri, 10 Jan 2014 23:31:27 +0000 (23:31 +0000)]
Merge "Vector: Rewrite footer styling with nesting"

10 years agoMerge "Vector: Rewrite p-personal with nesting."
jenkins-bot [Fri, 10 Jan 2014 23:31:25 +0000 (23:31 +0000)]
Merge "Vector: Rewrite p-personal with nesting."

10 years agoMerge "Vector: Componentize screen.less"
jenkins-bot [Fri, 10 Jan 2014 23:28:47 +0000 (23:28 +0000)]
Merge "Vector: Componentize screen.less"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 10 Jan 2014 22:37:51 +0000 (22:37 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I36b126374f3405a7a0e7750de87c9ddffaf4c6d3

10 years agoMerge "Remove pre-1.18 compatibility note for Linker::link"
jenkins-bot [Fri, 10 Jan 2014 22:20:34 +0000 (22:20 +0000)]
Merge "Remove pre-1.18 compatibility note for Linker::link"

10 years agoMerge "Change special page group for BookSources"
jenkins-bot [Fri, 10 Jan 2014 21:26:40 +0000 (21:26 +0000)]
Merge "Change special page group for BookSources"

10 years agoMerge "Throw exception on invalid RecentChange types"
jenkins-bot [Fri, 10 Jan 2014 21:03:38 +0000 (21:03 +0000)]
Merge "Throw exception on invalid RecentChange types"

10 years agoMerge "Update documentation for Sanitizer"
jenkins-bot [Fri, 10 Jan 2014 20:58:55 +0000 (20:58 +0000)]
Merge "Update documentation for Sanitizer"

10 years agoRemove pre-1.18 compatibility note for Linker::link
Siebrand Mazeland [Fri, 10 Jan 2014 18:10:31 +0000 (19:10 +0100)]
Remove pre-1.18 compatibility note for Linker::link

Change-Id: I7cda583c5a2c029e14d814bca245d99549f3d24b

10 years agoMerge "Fixed silly doc typos"
jenkins-bot [Fri, 10 Jan 2014 15:17:42 +0000 (15:17 +0000)]
Merge "Fixed silly doc typos"

10 years agoMerge "Return correct values and types"
jenkins-bot [Fri, 10 Jan 2014 12:25:23 +0000 (12:25 +0000)]
Merge "Return correct values and types"

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 agoFixed silly doc typos
Aaron Schulz [Fri, 10 Jan 2014 04:25:10 +0000 (20:25 -0800)]
Fixed silly doc typos

Change-Id: I53792affed74aa5985f82994b886b13603e23c65

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 agoVector: Rewrite footer styling with nesting
jrobson [Wed, 8 Jan 2014 18:13:55 +0000 (10:13 -0800)]
Vector: Rewrite footer styling with nesting

Change-Id: I86666dfcf14ce3a0a59733e7ac2459ac770139b6

10 years agoVector: Rewrite p-personal with nesting.
jrobson [Wed, 8 Jan 2014 17:57:23 +0000 (09:57 -0800)]
Vector: Rewrite p-personal with nesting.

Change-Id: I3b25552005a2d43759c7f1687008f8ae90f15111

10 years agoVector: Componentize screen.less
jrobson [Wed, 8 Jan 2014 17:55:08 +0000 (09:55 -0800)]
Vector: Componentize screen.less

This is a bold but much needed move.
I've not changed any of the css, I've simply separated it into separate
LESS files. This arguably makes the code much more readable and organised.
This is step 1 of a big cleanup of the Vector skin. A +2 is much appreciated.

Change-Id: I22e100bb0f9566af6ddccd88bc310f8902c5ff70

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 agoUpdate documentation for Sanitizer
Siebrand Mazeland [Tue, 7 Jan 2014 12:52:06 +0000 (13:52 +0100)]
Update documentation for Sanitizer

Also break a few long lines.

Change-Id: I77ffc76396e2c488da81b158d2225371fe0b7b67

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 agoReturn correct values and types
Siebrand Mazeland [Mon, 6 Jan 2014 18:32:50 +0000 (19:32 +0100)]
Return correct values and types

Change-Id: Ia069856160aae1ab937daee2da0d6800fe89698f

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