lhc/web/wiklou.git
8 years agoFix caption-side for tables inside figcaptions
Ed Sanders [Sun, 17 Jan 2016 17:23:42 +0000 (17:23 +0000)]
Fix caption-side for tables inside figcaptions

Bug: T75435
Change-Id: I7626f55872dc70cdb793352386d4a7d93b02b829

8 years agoMerge "API to fetch data about stashed images"
jenkins-bot [Fri, 15 Jan 2016 17:02:02 +0000 (17:02 +0000)]
Merge "API to fetch data about stashed images"

8 years agoMerge "Fix CLI installer when --dbname is not specified on command line."
jenkins-bot [Fri, 15 Jan 2016 14:02:17 +0000 (14:02 +0000)]
Merge "Fix CLI installer when --dbname is not specified on command line."

8 years agoAdd page_props table access class
Cindy Cicalese [Tue, 12 Jan 2016 04:29:48 +0000 (23:29 -0500)]
Add page_props table access class

Bug:T115331
Change-Id: I022b9e3ca47dc63650b8a62260603b0893a80e69

8 years agoAlso select rc_log_type if the patrolled flag is set in ApiQueryRecentChanges
Alex Monk [Fri, 15 Jan 2016 01:08:30 +0000 (01:08 +0000)]
Also select rc_log_type if the patrolled flag is set in ApiQueryRecentChanges

See If6507121

Bug: T123542
Change-Id: Ida954386facc1699537bb1f3ff24e6bf1f3ecf8d

8 years agoDistinguish read vs write mode Action classes
Aaron Schulz [Thu, 14 Jan 2016 00:06:06 +0000 (16:06 -0800)]
Distinguish read vs write mode Action classes

Bug: T123589
Change-Id: I3c8fab646d3bb8cd468e5b60c27f3c5d43f9f97c

8 years agoDefine which SpecialPage classes expect write vs read mode
Aaron Schulz [Thu, 14 Jan 2016 22:35:31 +0000 (14:35 -0800)]
Define which SpecialPage classes expect write vs read mode

Bug: T123591
Change-Id: I521ebdd5e8eb8f7f4df927dc38732170aef2ac19

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 14 Jan 2016 21:04:34 +0000 (22:04 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I3d9f10dc25f77795230ffdaf3f64fa1fd7905773

8 years agoMarkpatrolledAction: Remove double space
Fomafix [Thu, 14 Jan 2016 09:24:48 +0000 (09:24 +0000)]
MarkpatrolledAction: Remove double space

Change-Id: I9d303a3cc5b7af1e1a7d61948aae64eb227b07af

8 years agoMerge "Fix typo in [[MediaWiki:Botpasswords-editexisting/en]]"
jenkins-bot [Thu, 14 Jan 2016 19:04:22 +0000 (19:04 +0000)]
Merge "Fix typo in [[MediaWiki:Botpasswords-editexisting/en]]"

8 years agoMerge "Special:Block: Disallow to add an expiry time in the past"
jenkins-bot [Thu, 14 Jan 2016 19:03:18 +0000 (19:03 +0000)]
Merge "Special:Block: Disallow to add an expiry time in the past"

8 years agoMerge "Fix protectionexpiry using the wrong page"
jenkins-bot [Thu, 14 Jan 2016 19:03:13 +0000 (19:03 +0000)]
Merge "Fix protectionexpiry using the wrong page"

8 years agoMerge "Fix undefined property notice in ChangesList"
jenkins-bot [Thu, 14 Jan 2016 18:58:00 +0000 (18:58 +0000)]
Merge "Fix undefined property notice in ChangesList"

8 years agoDo not return null reference in JobQueueMemory
Thiemo Mättig [Thu, 14 Jan 2016 11:59:23 +0000 (12:59 +0100)]
Do not return null reference in JobQueueMemory

See Ia5b7a96 and the unrelated error raised there.
https://integration.wikimedia.org/ci/job/mwext-testextension-zend/19682/consoleFull

By writing this simple test I not only found one but two issues.

Bug: T123539
Change-Id: I17ed5b69992aa98ab2384b7a6aafc96b0fcba1ce

8 years agoFix protectionexpiry using the wrong page
Jackmcbarn [Thu, 14 Jan 2016 17:10:33 +0000 (12:10 -0500)]
Fix protectionexpiry using the wrong page

Change-Id: I0d8cfd68a735fbcdd32a000ef47e6922a816968e

8 years agoFix typo in [[MediaWiki:Botpasswords-editexisting/en]]
Alangi Derick [Thu, 14 Jan 2016 13:55:51 +0000 (14:55 +0100)]
Fix typo in [[MediaWiki:Botpasswords-editexisting/en]]

The text "Edit and existing bot password" has been changed to
"Edit an existing bot password".

Bug: T123523
Change-Id: I8b76216256aee59e647fb3c210250b203a763ccf

8 years agoSpecial:Block: Disallow to add an expiry time in the past
Florian [Thu, 7 Jan 2016 16:21:57 +0000 (17:21 +0100)]
Special:Block: Disallow to add an expiry time in the past

Like the protect action, adding a block with an expiry time in the
past doesn't make any sense and should throw an error message, instead of
creating a useless block.

Bug: T123069
Change-Id: Ib168ace80ada248f0209af896ab8b8ecfac3ef29

8 years agoMerge "Add better error logging for DB getLag() calls"
Aaron Schulz [Thu, 14 Jan 2016 11:08:42 +0000 (11:08 +0000)]
Merge "Add better error logging for DB getLag() calls"

8 years agoAdd AtomicSectionUpdate deferred update class
Aaron Schulz [Wed, 13 Jan 2016 16:54:48 +0000 (08:54 -0800)]
Add AtomicSectionUpdate deferred update class

This makes it easier to have deferred atomic DB transactions

Bug: T122115
Change-Id: I67afe335f03cc21fdce78abdf3f31fa67a368419

8 years agoChinese Conversion Table Update 2015-9
Chiefwei [Sun, 6 Dec 2015 13:51:42 +0000 (21:51 +0800)]
Chinese Conversion Table Update 2015-9

Update the Chinese conversion table routinely to fix bugs reported from
https://zh.wikipedia.org/wiki/Wikipedia:%E5%AD%97%E8%AF%8D%E8%BD%AC%E6%8D%A2/%E4%BF%AE%E5%A4%8D%E8%AF%B7%E6%B1%82 .

It is only data changes and only works for Chinese WikiProjects.

Change-Id: Icb47cf7d30a9bf09d55af9e96e34b9b5c6d6c9cf

8 years agoAdd better error logging for DB getLag() calls
Aaron Schulz [Wed, 13 Jan 2016 22:33:38 +0000 (14:33 -0800)]
Add better error logging for DB getLag() calls

Bug: T32257
Change-Id: I4ea5db670fe96d20b1d593cc2d759f9c3f570790

8 years agoAdd simple JobQueueMemory class for testing
Aaron Schulz [Wed, 13 Jan 2016 05:51:09 +0000 (21:51 -0800)]
Add simple JobQueueMemory class for testing

Change-Id: I1acce43dbab3b12393d6dc4675850695c619d88a

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 13 Jan 2016 22:02:10 +0000 (23:02 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I235946c492ef0b14f162c34405d0a49033f22909

8 years agoFix undefined property notice in ChangesList
aude [Wed, 13 Jan 2016 20:24:02 +0000 (15:24 -0500)]
Fix undefined property notice in ChangesList

This comes from ApiQueryWatchlist, which calls
ChangesList::isUnpatrolled with recent change row entries.

Since If71af587, rc_log_type is now needed along with rc_patrolled.

Bug: T123542
Change-Id: If6507121e59c53df925998f383c9bdf8f2936e37

8 years agoMerge "Remove patrol config check in User::isAllowed()"
jenkins-bot [Wed, 13 Jan 2016 21:47:55 +0000 (21:47 +0000)]
Merge "Remove patrol config check in User::isAllowed()"

8 years agoRemove WikiPage::getRawText()
Florian [Wed, 13 Jan 2016 19:35:24 +0000 (20:35 +0100)]
Remove WikiPage::getRawText()

Bug: T122754
Depends-On: I29ec61c482057c5b3b1048c834aedac182174929
Depends-On: I74e57d8e76149b452a9635ad8a6eca91c3df96a9
Depends-On: Ia624ffeb2d9b1862f943f7c3103df417d90001c5
Depends-On: I4a5a0d34156f9aae09a3edbe736fd924bc74773f
Depends-On: I2355b7d4a1b831cd752cbaa88bf1878e0d5554fb
Depends-On: I02051f0c74b4db93093f171f1250c03b99f6cec6
Depends-On: Ie88d05a6534ac1d02fb79494603cea17108e6bb9
Change-Id: Ie3247a7143859bf10580e67cd5383d152540a25b

8 years agoRemove User::generateToken()
Florian [Wed, 13 Jan 2016 18:11:53 +0000 (19:11 +0100)]
Remove User::generateToken()

Bug: T122754
Depends-On: I8b46e5232b9a40390143d04577c9356fb03cf23e
Depends-On: Idcad2af992e46a1fb67ac66ca3fcbe9d6fa681a1
Change-Id: I3f125ff432d45f0fdb36076183e01954bc3f84e9

8 years agoMerge "Fix purge method used in purgePatrolFooterCache()"
jenkins-bot [Wed, 13 Jan 2016 19:20:14 +0000 (19:20 +0000)]
Merge "Fix purge method used in purgePatrolFooterCache()"

8 years agoMerge "Better guess for patrol action"
jenkins-bot [Wed, 13 Jan 2016 18:44:51 +0000 (18:44 +0000)]
Merge "Better guess for patrol action"

8 years agoFix purge method used in purgePatrolFooterCache()
Aaron Schulz [Wed, 13 Jan 2016 17:41:49 +0000 (09:41 -0800)]
Fix purge method used in purgePatrolFooterCache()

Change-Id: I62ed843ac9755e39c6693fa33594067689fd6e0f

8 years agoRemove FileRepo::getRootUrl()
Florian [Wed, 13 Jan 2016 17:30:39 +0000 (18:30 +0100)]
Remove FileRepo::getRootUrl()

Not used anymore anywhere, and deprecated since 1.20.

Bug: T122754
Change-Id: Idbfa8cedd89b1527a4eca254326e20d050175041

8 years agoBetter guess for patrol action
cenarium [Wed, 13 Jan 2016 16:43:02 +0000 (17:43 +0100)]
Better guess for patrol action

The "return to" guess of the patrol action for non-JS users now also
checks uploads, and in that case let users return to Special:NewFiles.

Change-Id: Ib8e472c16b7034524ef3b79a5eb426f7edda6ec2

8 years agoRemove pointless rollback() warnings with "flush"
Aaron Schulz [Wed, 13 Jan 2016 15:00:42 +0000 (07:00 -0800)]
Remove pointless rollback() warnings with "flush"

This would previously make log noise when rollbackMasterChangesAndLog()
is triggered for explicit transactions.

Change-Id: Ia0009bcf575ef346d3bb7354ce3fb6fb477eb95f

8 years agoRemove pointless rollback() warnings with "flush"
Aaron Schulz [Wed, 13 Jan 2016 14:44:08 +0000 (06:44 -0800)]
Remove pointless rollback() warnings with "flush"

This would previously make log noise when rollbackMasterChangesAndLog() runs

Change-Id: I36dd955a89b23ed6d1ea693cf5366c7d3ad8d3af

8 years agoFix undeclared global $wgMainStash
Aaron Schulz [Wed, 13 Jan 2016 05:56:26 +0000 (21:56 -0800)]
Fix undeclared global $wgMainStash

Change-Id: I95d4194199a064221a56e0b10b236dd2564d1855

8 years agoMerge "Use dedicated cookie for skipping CDN cache after initiating DB changes"
jenkins-bot [Wed, 13 Jan 2016 03:16:40 +0000 (03:16 +0000)]
Merge "Use dedicated cookie for skipping CDN cache after initiating DB changes"

8 years agoMerge "Make AjaxDispatcher commit transactions before responding"
jenkins-bot [Wed, 13 Jan 2016 03:08:46 +0000 (03:08 +0000)]
Merge "Make AjaxDispatcher commit transactions before responding"

8 years agoMerge "HHVM 3.3.0 is oold"
jenkins-bot [Wed, 13 Jan 2016 00:48:37 +0000 (00:48 +0000)]
Merge "HHVM 3.3.0 is oold"

8 years agoMerge "Update OOjs UI to v0.15.0"
jenkins-bot [Tue, 12 Jan 2016 23:48:23 +0000 (23:48 +0000)]
Merge "Update OOjs UI to v0.15.0"

8 years agoHHVM 3.3.0 is oold
Reedy [Tue, 12 Jan 2016 23:41:37 +0000 (23:41 +0000)]
HHVM 3.3.0 is oold

Swap to 3.6.5 or later based on WMF usage

Bug: T123436
Change-Id: Ie17783ed3985eb05d78759f9469b1a6a198ef26e

8 years agoZend don't support less than PHP 5.5...
Reedy [Tue, 12 Jan 2016 23:32:58 +0000 (23:32 +0000)]
Zend don't support less than PHP 5.5...

Change-Id: Iecc771cda2e67eeaf2b6bf27f338e698d3298e96

8 years agoUpdate OOjs UI to v0.15.0
James D. Forrester [Tue, 12 Jan 2016 23:08:50 +0000 (15:08 -0800)]
Update OOjs UI to v0.15.0

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.15.0/History.md

Change-Id: I980336e249b34de98dd707c385714c8e5d1f2505

8 years agoAdd "bot passwords"
Brad Jorsch [Thu, 10 Dec 2015 16:09:24 +0000 (11:09 -0500)]
Add "bot passwords"

Bot passwords are something like OAuth-lite, or Google's application
passwords: the bot can use API action=login to log in with the special
username and password, and will then be allowed to use the API with a
restricted set of rights.

This is intended to provide an easy migration path for legacy bots and
for bots on wikis without OAuth, since AuthManager is going to greatly
complicate non-interactive authentication. If OAuth is available, an
owner-only consumer would be a better choice.

Bug: T121113
Change-Id: Iaa4015e00edbfbfaedcc8b2d27a2d3fd25009159
Depends-On: I7e15331efb162275c4116bcae61f19d6b884cbe3

8 years agoMove grant and IP restriction logic from OAuth to core
Brad Jorsch [Wed, 2 Dec 2015 17:10:26 +0000 (12:10 -0500)]
Move grant and IP restriction logic from OAuth to core

This also adds code to User to allow SessionProviders to apply the grant
restrictions without needing to hook UserGetRights.

Change-Id: Ida2b686157aab7c8240d6a7a5a5046374ef86d52

8 years agoAdd SessionManager
Brad Jorsch [Tue, 22 Sep 2015 14:33:24 +0000 (10:33 -0400)]
Add SessionManager

SessionManager is a general-purpose session management framework, rather
than the cookie-based sessions that PHP wants to provide us.

While fallback is provided for using $_SESSION and other PHP session
management functions, they should be avoided in favor of using
SessionManager directly.

For proof-of-concept extensions, see OAuth change Ib40b221 and
CentralAuth change I27ccabdb.

Bug: T111296
Change-Id: Ic1ffea74f3ccc8f93c8a23b795ecab6f06abca72

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 12 Jan 2016 21:27:52 +0000 (22:27 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I805d5a3c6f10d2ce0fab8aaa937fa5b06cde152f

8 years agoMake AjaxDispatcher commit transactions before responding
Aaron Schulz [Tue, 12 Jan 2016 21:23:39 +0000 (13:23 -0800)]
Make AjaxDispatcher commit transactions before responding

Some extension code appears to have sanity commit() calls
to work around this in places, which is the wrong solution.

Note that there was always the post-send commit, just not
the pre-send one that normal requests have.

Change-Id: I410a1f1097daa4f43481d1b0afbe7f467b86d254

8 years agoAPI to fetch data about stashed images
Mark Holmquist [Fri, 11 Dec 2015 17:50:35 +0000 (11:50 -0600)]
API to fetch data about stashed images

Only works for the currently logged-in user (I'm not sure how that works
with bots, if OAuth will do that correctly or whatever) but will help us
do some neat stuff with tools that use the stash - including resuming
uploads.

Bug: T85561
Change-Id: I215ac6936185563f4c7b42a4bced65e4b096fd15

8 years agoTrack memory RSS increases in JobRunner
Aaron Schulz [Mon, 11 Jan 2016 21:13:21 +0000 (13:13 -0800)]
Track memory RSS increases in JobRunner

Bug: T123284
Change-Id: Ic6b76a722cc8d1e18a42b9779f776850ae4700f4

8 years agoMerge "Refactor JobRunner::run() by breaking it up a bit"
jenkins-bot [Tue, 12 Jan 2016 20:36:25 +0000 (20:36 +0000)]
Merge "Refactor JobRunner::run() by breaking it up a bit"

8 years agoMerge "Provide short URL to file description page in imageinfo API"
jenkins-bot [Tue, 12 Jan 2016 20:32:56 +0000 (20:32 +0000)]
Merge "Provide short URL to file description page in imageinfo API"

8 years agoMerge "Update the WikiPage object with the new ID when undeleting"
jenkins-bot [Tue, 12 Jan 2016 20:27:28 +0000 (20:27 +0000)]
Merge "Update the WikiPage object with the new ID when undeleting"

8 years agoMerge "Dependency inject TransactionProfiler into DatabaseBase"
jenkins-bot [Tue, 12 Jan 2016 20:05:36 +0000 (20:05 +0000)]
Merge "Dependency inject TransactionProfiler into DatabaseBase"

8 years agoMerge "De-duplicate near match query terms when generating variants"
jenkins-bot [Tue, 12 Jan 2016 16:56:30 +0000 (16:56 +0000)]
Merge "De-duplicate near match query terms when generating variants"

8 years agoMerge "Allow parameters to be passed into skin tooltip messages"
jenkins-bot [Tue, 12 Jan 2016 14:51:35 +0000 (14:51 +0000)]
Merge "Allow parameters to be passed into skin tooltip messages"

8 years agoMerge "Remove redundant test teardown in UploadFromUrlTestSuite"
jenkins-bot [Tue, 12 Jan 2016 14:45:37 +0000 (14:45 +0000)]
Merge "Remove redundant test teardown in UploadFromUrlTestSuite"

8 years agoAllow parameters to be passed into skin tooltip messages
victorbarbu [Tue, 12 Jan 2016 13:45:30 +0000 (15:45 +0200)]
Allow parameters to be passed into skin tooltip messages

You can now pass parameters to toolbox links' tooltips,
by setting 'tooltip-params' key in a $nav_urls item of
SkinTemplate::buildNavUrls.

This functionality is used to add GENDER support to two
tooltip messages.

Bug: T123365
Change-Id: I45577d54bd78ba1e2ba10fb8f04367244495bfea

8 years agoProvide short URL to file description page in imageinfo API
victorbarbu [Mon, 4 Jan 2016 23:40:01 +0000 (01:40 +0200)]
Provide short URL to file description page in imageinfo API

Bug: T122439
Change-Id: I0f00b986e6095bdb9b8d6af6fbc5b01995227e02

8 years agoUpdate the WikiPage object with the new ID when undeleting
This, that and the other [Tue, 12 Jan 2016 13:30:33 +0000 (00:30 +1100)]
Update the WikiPage object with the new ID when undeleting

Issue introduced by 0aa6486cbff1e0de05a91cb88158588595f4a872.

Change-Id: I2c4fde5e66f280a6bc2de1b13453f1c40385a20d

8 years agoMerge "Fall back to autoincrement when page cannot be recreated with old ID"
jenkins-bot [Tue, 12 Jan 2016 04:42:00 +0000 (04:42 +0000)]
Merge "Fall back to autoincrement when page cannot be recreated with old ID"

8 years agoMerge "Module storage: set stricter storage quotas on Firefox"
jenkins-bot [Tue, 12 Jan 2016 03:50:00 +0000 (03:50 +0000)]
Merge "Module storage: set stricter storage quotas on Firefox"

8 years agoFall back to autoincrement when page cannot be recreated with old ID
Gergő Tisza [Tue, 12 Jan 2016 03:09:24 +0000 (19:09 -0800)]
Fall back to autoincrement when page cannot be recreated with old ID

Fixes I882b8ba09d68e7475e1d0934328730059574e292.

Bug: T28123
Change-Id: Ib029407d8e21f041803131143ff4dc0856803c60

8 years agoAdd parameters to importTextFiles.php
Andrew H [Sun, 10 Jan 2016 18:53:46 +0000 (18:53 +0000)]
Add parameters to importTextFiles.php

- Add --bot to mark edits as bot edits when --rc is specified
- Add --overwrite to overwrite existing pages with changes.
This respects the --use-timestamp option by only overwriting if
the file is newer than the latest revision on the destination page.
- Add --prefix for specifying a prefix
- Add --rc to add an edit entry to Special:RecentChanges

This is a GCI task.

Change-Id: I5acf829409853e2b311ae6c1c75a009fef91ceeb

8 years agoRemove redundant test teardown in UploadFromUrlTestSuite
Timo Tijhof [Fri, 4 Dec 2015 12:03:02 +0000 (12:03 +0000)]
Remove redundant test teardown in UploadFromUrlTestSuite

Looks like this was copied from the Parser upload test suite
but never used.

Change-Id: I41dd384d0cf996fdf459bc544d1430fc46d41025

8 years agoDe-duplicate near match query terms when generating variants
nomoa [Tue, 12 Jan 2016 01:22:25 +0000 (17:22 -0800)]
De-duplicate near match query terms when generating variants

zhwiki generates 9 variants: we should not run these queries if the term is unchanged.

Change-Id: If23d19761dea33bf4bdcf6495becc8e983915fde

8 years agoRemove patrol config check in User::isAllowed()
cenarium [Tue, 12 Jan 2016 00:34:19 +0000 (01:34 +0100)]
Remove patrol config check in User::isAllowed()

The isAllowed() function of the User class checks $wgUseRCPatrol and
$wgUseNPPatrol in case the action is 'patrol' or 'autopatrol'.
Considering we have the useRCPatrol and such functions, it shouldn't.
getUserPermissionsErrors of the Title class doesn't and extensions may
use patrol regardless of core config. If we don't remove it, we would
have to also check the new $wgUseFilePatrol.

Change-Id: I671a6b3aa3bd1dc274f2f8e61fb739235ced198c

8 years agoMerge "Revert "Convert Special:EmailUser to use OOUIHTMLForm""
jenkins-bot [Tue, 12 Jan 2016 00:09:48 +0000 (00:09 +0000)]
Merge "Revert "Convert Special:EmailUser to use OOUIHTMLForm""

8 years agoMerge "SpecialComparePages: Float the boxes, if available space is given"
jenkins-bot [Tue, 12 Jan 2016 00:07:45 +0000 (00:07 +0000)]
Merge "SpecialComparePages: Float the boxes, if available space is given"

8 years agoUse ar_page_id on undeletion
victorbarbu [Mon, 11 Jan 2016 21:52:21 +0000 (23:52 +0200)]
Use ar_page_id on undeletion

Bug: T28123
Change-Id: I882b8ba09d68e7475e1d0934328730059574e292

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 11 Jan 2016 21:31:24 +0000 (22:31 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia4959d4266a4a08313df59426c63f66b7aab0d43

8 years agoSpecialComparePages: Float the boxes, if available space is given
Florian [Tue, 5 Jan 2016 20:27:34 +0000 (21:27 +0100)]
SpecialComparePages: Float the boxes, if available space is given

Follow up: I480c2165c908ca7c8e08ed5990e386ddb515f3b0

Bug: T122907
Change-Id: Iaf139974e850621a668c8ac32f3dc88ba3b70508

8 years agoModule storage: set stricter storage quotas on Firefox
Ori Livneh [Mon, 11 Jan 2016 20:52:32 +0000 (12:52 -0800)]
Module storage: set stricter storage quotas on Firefox

The 100 kB limit is being effectively circumvented by the fact that
heavy-hitters like VisualEditor are now split up into a greater number
of smaller modules. We can improve matters further by making the per-module
size limit smaller on Firefox, where the quota is especially tight due to
<https://bugzilla.mozilla.org/show_bug.cgi?id=1064466>.

Bug: T66721
Change-Id: Ia1bb1e0b834af4280989cec5ba382ff2b3c50237

8 years agoRefactor JobRunner::run() by breaking it up a bit
Aaron Schulz [Mon, 11 Jan 2016 20:42:15 +0000 (12:42 -0800)]
Refactor JobRunner::run() by breaking it up a bit

Change-Id: I3abb9520b8479ae9f3c8ff502253625c93a62e92

8 years agoMerge "SpecialExpandTemplates: Fix false checkbox label for nowiki tag"
jenkins-bot [Mon, 11 Jan 2016 18:36:26 +0000 (18:36 +0000)]
Merge "SpecialExpandTemplates: Fix false checkbox label for nowiki tag"

8 years agoSpecialComparePages: Remove outdated comment
Fomafix [Mon, 11 Jan 2016 17:11:57 +0000 (17:11 +0000)]
SpecialComparePages: Remove outdated comment

The class 'mw-searchInput' got removed in 828a99e7.

Change-Id: I8cd1f85b7af6bb4552764fa8210d889fcb205746

8 years agoDon't call Title::getInternalURL with 2 parameters.
Reedy [Mon, 11 Jan 2016 12:50:24 +0000 (12:50 +0000)]
Don't call Title::getInternalURL with 2 parameters.

Unnecessary, and causes a deprecated notice

Change-Id: I823b2a037260d3d50a7b074d25d51c11c165d3b8

8 years agoAPI: Avoid FOUC on help pages
Kunal Mehta [Sat, 12 Dec 2015 02:55:07 +0000 (18:55 -0800)]
API: Avoid FOUC on help pages

Loading CSS with OutputPage::addModules() causes a FOUC because the
styles are loaded through JavaScript, using addModuleStyles() fixes
this. But it doesn't load module dependencies, so load the
mediawiki.hlist styles explicitly in ApiHelp.

Bug: T117901
Change-Id: I1dfd194d686c05573eefc85d5dfd7ee2731bf286

8 years agoRemove JavaScript .hlist fallback for IE8
Kunal Mehta [Mon, 11 Jan 2016 06:36:51 +0000 (22:36 -0800)]
Remove JavaScript .hlist fallback for IE8

IE8 is no longer served JavaScript, so the fallback will never run.

Change-Id: Ic2524d7c6d019cc7b978d79ee0ae64a6371fb42e

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 10 Jan 2016 21:51:05 +0000 (22:51 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Idb71159183953e00c9476d8b3d6798e833709839

8 years agoRevert "Convert Special:EmailUser to use OOUIHTMLForm"
Florianschmidtwelzow [Sun, 10 Jan 2016 14:20:52 +0000 (14:20 +0000)]
Revert "Convert Special:EmailUser to use OOUIHTMLForm"

This reverts commit bc9b2162cbfeaabdcbfe8bdf342a33523ea4f3d0.

Just in case, this change[1] isn't merged before the next wmf-release (12 January) to unbreak the form.

[1] I3e0c02155428ae400bc3a6d3ed2e66e69ee441fa

Change-Id: I1a594485fbf8c75b4199df2e255dedc7fb90e74d

8 years agoSpecialExpandTemplates: Fix false checkbox label for nowiki tag
Florian [Fri, 8 Jan 2016 06:27:46 +0000 (07:27 +0100)]
SpecialExpandTemplates: Fix false checkbox label for nowiki tag

Bug: T122907
Change-Id: I49f4209f2e91e08ad08ba79ab3f76a0cf0dbea02

8 years agoPreferences: Use session data instead of URL parameter for success
Fomafix [Sat, 9 Jan 2016 22:41:46 +0000 (22:41 +0000)]
Preferences: Use session data instead of URL parameter for success

The session data gets set in the POST and gets deleted in the GET.

This change avoids changing the URL for the success message.
A reload of the page does not show the success message again.

The URL manipulation in mediawiki.special.preferences.js is superfluous.

Bug: T26700
Change-Id: I1c2b011e7a66b2b9379dd4a3fdcc6f978dd43b52

8 years agoAPI: Flag "user" parameters in various modules as type 'user'
Brad Jorsch [Mon, 4 Jan 2016 18:55:26 +0000 (10:55 -0800)]
API: Flag "user" parameters in various modules as type 'user'

The API 'user' type accepts both user names and IP addresses, and
applies normalization but not canonicalization. We should be using this
on basically every user parameter to ensure that e.g. IPv6 usernames get
uppercased.

Bug: T122803
Change-Id: Ic67fb54061ac311e54f325b2a1a4658f43b8fef4

8 years agoconvertExtensionToRegistration.php: die on global functions
victorbarbu [Sat, 9 Jan 2016 19:27:54 +0000 (21:27 +0200)]
convertExtensionToRegistration.php: die on global functions

Bug: T122952
Change-Id: I0fca5457aba3a7237ad7aeb96f3f6636d73863d3

8 years agoPost-document hook AfterBuildFeedLinks
Florian [Sat, 9 Jan 2016 15:24:12 +0000 (16:24 +0100)]
Post-document hook AfterBuildFeedLinks

Follow up: If48bd07a0e7e67fd1c1a94ebaa28ca9dae146c55

Change-Id: I9080a150354b978098b8bf4e279f26fdc2ac7c8e

8 years agoMerge "importImages.php: Run input file names through UTF8 normalization"
jenkins-bot [Sat, 9 Jan 2016 10:36:18 +0000 (10:36 +0000)]
Merge "importImages.php: Run input file names through UTF8 normalization"

8 years agoRemove excess newlines at the end of files
Ricordisamoa [Sat, 9 Jan 2016 08:13:37 +0000 (09:13 +0100)]
Remove excess newlines at the end of files

All of them added with commit 6d55397e7cb6f2001f8635dee7c2a78d6ad1a23e

Change-Id: I09822b8c2a32832b1875028739091dd893900783

8 years agoMerge "ParserTests: Add a video file to parser test suite"
jenkins-bot [Sat, 9 Jan 2016 07:30:54 +0000 (07:30 +0000)]
Merge "ParserTests: Add a video file to parser test suite"

8 years agoMerge "Print which file we are running parsertests for"
jenkins-bot [Sat, 9 Jan 2016 07:29:03 +0000 (07:29 +0000)]
Merge "Print which file we are running parsertests for"

8 years agoMerge "Fix last direct usage of UtfNormal in MW core"
jenkins-bot [Sat, 9 Jan 2016 07:19:23 +0000 (07:19 +0000)]
Merge "Fix last direct usage of UtfNormal in MW core"

8 years agoimportImages.php: Run input file names through UTF8 normalization
ananay [Fri, 8 Jan 2016 23:07:57 +0000 (04:37 +0530)]
importImages.php: Run input file names through UTF8 normalization

Bug: T78060
Change-Id: I545ea8f28ff3a1aac03c29d27355c0371632ef4d

8 years agoFix last direct usage of UtfNormal in MW core
Reedy [Fri, 8 Jan 2016 22:38:18 +0000 (22:38 +0000)]
Fix last direct usage of UtfNormal in MW core

Change-Id: I82789ab5ba628d974c77f026f0276cec1e22ad05

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 8 Jan 2016 21:00:12 +0000 (22:00 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8dea4be58e78aa026c0fc8bfac81320c1d943ee2

8 years agoMerge "Add a composer.local.json-sample"
jenkins-bot [Fri, 8 Jan 2016 20:30:57 +0000 (20:30 +0000)]
Merge "Add a composer.local.json-sample"

8 years agoAdd a composer.local.json-sample
ananay [Fri, 8 Jan 2016 05:47:18 +0000 (11:17 +0530)]
Add a composer.local.json-sample

Bug: T122968
Change-Id: Ib13417b0c29b6fd2b3aaea6808fde3f3c12393e6

8 years agoMerge "build: Update jscs to latest"
jenkins-bot [Fri, 8 Jan 2016 16:44:29 +0000 (16:44 +0000)]
Merge "build: Update jscs to latest"

8 years agobuild: Update jscs to latest
Paladox [Thu, 7 Jan 2016 22:23:52 +0000 (22:23 +0000)]
build: Update jscs to latest

* grunt-jscs: 2.5.0 → 2.6.0

Change-Id: I4b1585c557b94927e593975e2e4696b88becd095

8 years agoMerge "Add documentation to clarify difference between save and upload message"
jenkins-bot [Fri, 8 Jan 2016 07:58:01 +0000 (07:58 +0000)]
Merge "Add documentation to clarify difference between save and upload message"

8 years agoAdd release notes for 4a40a5d21729
Kunal Mehta [Fri, 8 Jan 2016 03:55:43 +0000 (19:55 -0800)]
Add release notes for 4a40a5d21729

Change-Id: I38c7d710f489c54592876e7dbc16bf2871e77930

8 years agoAdd maintenance script importTextFiles.php
Andrew H [Thu, 7 Jan 2016 03:09:47 +0000 (03:09 +0000)]
Add maintenance script importTextFiles.php

importTextFiles.php can be used to import pages from text files
containing wikitext.

Also, added $userObj to WikiRevision so that it can accept a User
object instead of just a username.

This is a GCI task.

Change-Id: I20eaf2005bdd3d041f55d8c0b108f001c064d638