lhc/web/wiklou.git
8 years agoMerge "Support all values for exif PhotometricInterpretation"
jenkins-bot [Sun, 13 Dec 2015 04:18:59 +0000 (04:18 +0000)]
Merge "Support all values for exif PhotometricInterpretation"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 12 Dec 2015 21:09:35 +0000 (22:09 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ic45999ff91e8cd96762877d238faee909a50e63c

8 years agoMerge "Fixed Special:PasswordReset message"
jenkins-bot [Sat, 12 Dec 2015 17:22:12 +0000 (17:22 +0000)]
Merge "Fixed Special:PasswordReset message"

8 years agoFixed Special:PasswordReset message
mhutti1 [Thu, 10 Dec 2015 23:07:20 +0000 (00:07 +0100)]
Fixed Special:PasswordReset message

The message now varies depening on whether the user supplied an email
or username.

Bug: T118851
Change-Id: I6eb33e2409c391aa37ed8fe1196727c2e907719d

8 years agoFixed incorrect size for api result
Yuri Astrakhan [Fri, 11 Dec 2015 22:45:14 +0000 (01:45 +0300)]
Fixed incorrect size for api result

Added a unit test to highlight the problem

Change-Id: I5d4bcb755bd3686a92e7b111946a49892699729f

8 years agoMerge "Resolve code invoking Title::newFromURL"
jenkins-bot [Sat, 12 Dec 2015 11:25:37 +0000 (11:25 +0000)]
Merge "Resolve code invoking Title::newFromURL"

8 years agoResolve code invoking Title::newFromURL
Albert221 [Fri, 11 Dec 2015 21:50:55 +0000 (22:50 +0100)]
Resolve code invoking Title::newFromURL

Bug: T65424
Change-Id: I6c97245faccd8b34557eb3be4150867fd9b37992

8 years agoMerge "Make query pages not accept offset > 10000 in miser mode"
jenkins-bot [Sat, 12 Dec 2015 02:42:06 +0000 (02:42 +0000)]
Merge "Make query pages not accept offset > 10000 in miser mode"

8 years agoMerge "Update grunt-jscs to 2.5.0"
jenkins-bot [Sat, 12 Dec 2015 01:59:07 +0000 (01:59 +0000)]
Merge "Update grunt-jscs to 2.5.0"

8 years agoRename getSquidURLs() => getCdnUrls()
Aaron Schulz [Sat, 12 Dec 2015 00:40:35 +0000 (16:40 -0800)]
Rename getSquidURLs() => getCdnUrls()

Change-Id: I433acc7990a5fcefd0d2ff5b14ba33dec0424706

8 years agoMerge "Use GAID_FOR_UPDATE for getArticleID() in LinksUpdate"
jenkins-bot [Fri, 11 Dec 2015 23:20:14 +0000 (23:20 +0000)]
Merge "Use GAID_FOR_UPDATE for getArticleID() in LinksUpdate"

8 years agoUse GAID_FOR_UPDATE for getArticleID() in LinksUpdate
Aaron Schulz [Fri, 11 Dec 2015 13:17:51 +0000 (05:17 -0800)]
Use GAID_FOR_UPDATE for getArticleID() in LinksUpdate

Bug: T121228
Change-Id: I33addea4261d58cc93ab739621481065eb9c908d

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 11 Dec 2015 22:15:54 +0000 (23:15 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ibbe6f84d2fce2bf7ff1be575a598de265322ded3

8 years agoMerge "Add script to generate random test edits for a user"
jenkins-bot [Fri, 11 Dec 2015 21:55:59 +0000 (21:55 +0000)]
Merge "Add script to generate random test edits for a user"

8 years agoMerge "Make redis JobQueueConnectionError mention the host"
jenkins-bot [Fri, 11 Dec 2015 21:51:23 +0000 (21:51 +0000)]
Merge "Make redis JobQueueConnectionError mention the host"

8 years agoAdd script to generate random test edits for a user
Aaron Schulz [Tue, 8 Dec 2015 21:35:34 +0000 (13:35 -0800)]
Add script to generate random test edits for a user

Change-Id: Ieb079196aa8b70c8df52d791cd3a49242ebfb1e7

8 years agoMake redis JobQueueConnectionError mention the host
Aaron Schulz [Fri, 11 Dec 2015 02:34:21 +0000 (18:34 -0800)]
Make redis JobQueueConnectionError mention the host

Change-Id: I00a43265a65de9c9fa58b7046770d754b7d27815

8 years agoImprove addNewAccountMailPassword() docs
Aaron Schulz [Fri, 11 Dec 2015 13:21:06 +0000 (05:21 -0800)]
Improve addNewAccountMailPassword() docs

Change-Id: Iade04a33f2dafa8c289df25d9f86fa1607f799b9

8 years agoMerge "Localisation: Gave each special page its own message"
jenkins-bot [Fri, 11 Dec 2015 18:40:40 +0000 (18:40 +0000)]
Merge "Localisation: Gave each special page its own message"

8 years agoLocalisation: Gave each special page its own message
PranavK [Fri, 11 Dec 2015 12:12:03 +0000 (17:42 +0530)]
Localisation: Gave each special page its own message

Bug: T45502
Change-Id: I6d41c2174a67bc9b231b6fc6209677fb84692cc5

8 years agoRemove wfForeignMemcKey() usage from JobQueueRedis::getQueueKey()
Aaron Schulz [Thu, 10 Dec 2015 19:29:31 +0000 (11:29 -0800)]
Remove wfForeignMemcKey() usage from JobQueueRedis::getQueueKey()

This class should manage the escaping it uses, rather than use some
random BagOStuff that has nothing to do with the job queue.

Change-Id: Ie716dc4a3429754a99c5f0670555e5e049b61aa1

8 years agoRemove JobQueue::setTestingPrefix() hack
Aaron Schulz [Fri, 11 Dec 2015 01:13:48 +0000 (17:13 -0800)]
Remove JobQueue::setTestingPrefix() hack

The tests are only run on dev install and only touch the
null queue anyway.

Change-Id: I441a2a4605a9e2984142485b022dd524ff819360

8 years agoFix bad regex in 6fe2f48df
Aaron Schulz [Fri, 11 Dec 2015 00:35:02 +0000 (16:35 -0800)]
Fix bad regex in 6fe2f48df

Change-Id: I51d136a491111b7c980ddb13fff74bf4a63b15ad

8 years agoAdd per-partition JobQueueRedis aggregation
Aaron Schulz [Thu, 12 Nov 2015 00:10:29 +0000 (16:10 -0800)]
Add per-partition JobQueueRedis aggregation

* Track queues with non-abandoned jobs per partition server.
  The s-queuesWithJobs key can easily be queried to see which
  queues need to have periodic tasks run (or for debugging).
* This is requirement for the redis jobchron service to be able to
  avoid hitting N=(no. types X no. wikis) queues for periodic tasks
  when only a tiny fraction of those actually have any jobs. For WMF,
  there are over 30K queues, most of them empty, so doing that can help
  lower redis-server CPU (or at least make jobchron more responsive).
* This also allows for jobchron to manage the aggregator by taking the
  per-server aggregator sets and merging them. This scales much better
  as there are only a modest number of these daemons (18 for WMF) but
  vastly more web thread pushing jobs. This cuts down on the connections
  to the active aggregator server (the one with the hash table).
* Use Lua unpack() more for stylistic consistency.

Change-Id: I1549f0edc78cc4004dd887b475dec4c0ebd306c6

8 years agoMerge "Timing::measure(): handle missing marks better"
jenkins-bot [Thu, 10 Dec 2015 23:12:04 +0000 (23:12 +0000)]
Merge "Timing::measure(): handle missing marks better"

8 years agoTiming::measure(): handle missing marks better
Ori Livneh [Thu, 10 Dec 2015 22:58:11 +0000 (14:58 -0800)]
Timing::measure(): handle missing marks better

Currently Timing::measure() does not check that the requested start and end
marks exist, causing it to return bogus values without any indication that
something has gone wrong. Fix this by logging and error and returning false
in case either the start or end markers do not exist. To make it possible to
log, make Timing implement the LoggerAware interface.

Change-Id: I75af5273e9a8a52b31d0af1de206b0d8a4c82fbc

8 years agoAdd $wgCdnReboundPurgeDelay for more consistent CDN purges
Aaron Schulz [Fri, 13 Nov 2015 06:41:37 +0000 (22:41 -0800)]
Add $wgCdnReboundPurgeDelay for more consistent CDN purges

Bug: T113192
Change-Id: I89deb4f8143c1cc6154cdd05bcee1f49d3e3a75a

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 10 Dec 2015 21:12:44 +0000 (22:12 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I91401bb83d196f67b487faa207e0b2d8e97b10bc

8 years agomw.Feedback: Support leaving feedback on foreign wikis
Kunal Mehta [Thu, 10 Dec 2015 18:58:41 +0000 (10:58 -0800)]
mw.Feedback: Support leaving feedback on foreign wikis

Adds an optional apiUrl parameter that will be passed on to the
mw.messagePoster if the feedback page is on a foreign wiki.

Bug: T111590
Change-Id: I932c6af08b7bf1c98ab0d415d410a63680faf094

8 years agomw.messagePoster: Support foreign wikis
Kunal Mehta [Thu, 10 Dec 2015 18:51:27 +0000 (10:51 -0800)]
mw.messagePoster: Support foreign wikis

Allow passing in an external api.php URL to post a message on a remote
wiki. Note that the remote content model must have its messagePoster
implementation registered on the local wiki for this to work.

Bug: T111590
Change-Id: Id52b7d3a12ed5e57e29d3f22fb7f4f36b8a908b1

8 years agoRemoved unnecessary blank line in Special:Export page
PranavK [Thu, 10 Dec 2015 11:47:07 +0000 (17:17 +0530)]
Removed unnecessary blank line in Special:Export page

Bug: T103870
Change-Id: I5b314ef9204ca33d851a9fe88477d0be427e5199

8 years agoFix MovePage Special Page for Korean
Yongmin Hong [Thu, 10 Dec 2015 04:20:23 +0000 (04:20 +0000)]
Fix MovePage Special Page for Korean

Its translation string has been changed, but translatewiki.net does
not allow editing special page directly, so I'm changing it directly
to make the new string on twn as main special page name. It is
already existing special page, so there should be no problem.

Also, removing my old legacy username which I don't use anymore.

Change-Id: I53ab891f74ce4413703a7e1d69dd7712eeaba68d

8 years agoMerge "Replace "squid" with "CDN" in various comments"
jenkins-bot [Thu, 10 Dec 2015 01:47:03 +0000 (01:47 +0000)]
Merge "Replace "squid" with "CDN" in various comments"

8 years agoReplace "squid" with "CDN" in various comments
Aaron Schulz [Thu, 10 Dec 2015 01:30:47 +0000 (17:30 -0800)]
Replace "squid" with "CDN" in various comments

Change-Id: Idcc528daf28e119349155d36e30a9bcf61b2e7d5

8 years agoresourceloader: Avoid using 'message' in log message key
Timo Tijhof [Thu, 10 Dec 2015 01:33:25 +0000 (01:33 +0000)]
resourceloader: Avoid using 'message' in log message key

This overrides the message being sent. Use 'messageKey' instead,
which complements 'cacheKey' used elsewhere in the class.

Change-Id: I70b1115853d16e5f1357dc5f3d10e46f9c029fc6

8 years agoMerge "Rename setSquidMaxage() => setCdnMaxage()"
jenkins-bot [Thu, 10 Dec 2015 01:27:29 +0000 (01:27 +0000)]
Merge "Rename setSquidMaxage() => setCdnMaxage()"

8 years agoMerge "Rename SquidUpdate => CdnCacheUpdate"
jenkins-bot [Thu, 10 Dec 2015 01:14:39 +0000 (01:14 +0000)]
Merge "Rename SquidUpdate => CdnCacheUpdate"

8 years agoRename setSquidMaxage() => setCdnMaxage()
Aaron Schulz [Thu, 10 Dec 2015 01:07:05 +0000 (17:07 -0800)]
Rename setSquidMaxage() => setCdnMaxage()

Also updated the OutputPage member variable.

Change-Id: I0b41c66da58c6126c1bd96170c02d084a067383c

8 years agoRename SquidUpdate => CdnCacheUpdate
Aaron Schulz [Wed, 9 Dec 2015 18:05:59 +0000 (10:05 -0800)]
Rename SquidUpdate => CdnCacheUpdate

Squid is not the only possible CDN

Change-Id: Ie2a2955847c5706e630322bbbab71c9d063b378f

8 years agoMerge "resourceloader: Re-enable getVersionHash test"
jenkins-bot [Thu, 10 Dec 2015 00:11:00 +0000 (00:11 +0000)]
Merge "resourceloader: Re-enable getVersionHash test"

8 years agoMerge "ApiSiteInfo: Added a way to check if uploads are enabled"
jenkins-bot [Wed, 9 Dec 2015 23:32:52 +0000 (23:32 +0000)]
Merge "ApiSiteInfo: Added a way to check if uploads are enabled"

8 years agoUpdate grunt-jscs to 2.5.0
Paladox [Wed, 9 Dec 2015 21:45:44 +0000 (21:45 +0000)]
Update grunt-jscs to 2.5.0

2.5.0

Bump JSCS version to  2.7.0

2.4.0

Bump JSCS version to  2.6.0

2.3.0

Bump JSCS version to  2.5.0

2.2.0

* Update  jscs  dependency to  2.4.0
* Use new  Checker#execute  method, which allows to respect  maxErrors
* option when  fix  option is enabled
* fix  option is now directly passed to  Checker  class of  jscs
* Use new "idiomatic" preset instead of "jquery"
* Test in latest version of node in travis CI
* Update dev dependencies

https://github.com/jscs-dev/grunt-jscs/releases

Change-Id: I472a3c63fff814357799a3889b09bbb6a977474b

8 years agoresourceloader: Re-enable getVersionHash test
Timo Tijhof [Wed, 9 Dec 2015 20:52:58 +0000 (20:52 +0000)]
resourceloader: Re-enable getVersionHash test

Shouldn't be flaky anymore as of 5d5b269e0e.

This reverts commit d151dc40ae7d7f71e5b9a2753eafdca475ed6a69.

Bug: T109394
Change-Id: Id94b6e71a747a5b9fe1fecd8145955fde4f39a9c

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 9 Dec 2015 20:18:02 +0000 (21:18 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib83edf9b5e30438c85c7e17bd6559244ef31f800

8 years agoTOC: Move JavaScript-related styles to the same module
Fomafix [Tue, 17 Nov 2015 05:59:23 +0000 (05:59 +0000)]
TOC: Move JavaScript-related styles to the same module

This change moves the rules for the CSS classes that only
get used by JavaScript into the same module 'mediawiki.toc'.
This module already gets loaded via JavaScript.

This way, the styles are only loaded when they are needed.

Cached HTML pages already contain the module 'mediawiki.toc'
so there is no problem on deployment.

Change-Id: Ib7c81e9433e7e3976e40e407f63fc8e924957faa

8 years agoMake TitleMoveComplete hook events apply in transactions
Aaron Schulz [Tue, 8 Dec 2015 00:26:07 +0000 (16:26 -0800)]
Make TitleMoveComplete hook events apply in transactions

* All updates for an event are atomic for the main DB.
* This follows-up 9e51328790c0a by reverting the auto-commit
  behavoir which was a side-effect of that change.
* Added TitleMoveCompleting hook with is a pre-commit version
  of the same hook. Various extension could benefit from the
  atomicity of running in the main transaction.

Change-Id: Ife5990bbedca1de78bcf83f2d6fdeeae8086ffad

8 years agoMerge "Fix various mistakes in PHPDoc comments"
jenkins-bot [Wed, 9 Dec 2015 18:13:19 +0000 (18:13 +0000)]
Merge "Fix various mistakes in PHPDoc comments"

8 years agoFix various mistakes in PHPDoc comments
Thiemo Mättig [Wed, 9 Dec 2015 17:20:41 +0000 (18:20 +0100)]
Fix various mistakes in PHPDoc comments

Change-Id: I434207f61e0663f2d2c9a076296c2e0d04a3fafb

8 years agoApiSiteInfo: Added a way to check if uploads are enabled
georggi [Wed, 9 Dec 2015 17:07:38 +0000 (19:07 +0200)]
ApiSiteInfo: Added a way to check if uploads are enabled

Added new property 'uploadsenabled' to be able to check if
uploads are enabled

Bug: T72075
Change-Id: I4bf7040a953e98816d6fffdbdeeec1e56035b28a

8 years agoMerge "Additional release note for I495683"
jenkins-bot [Wed, 9 Dec 2015 14:59:24 +0000 (14:59 +0000)]
Merge "Additional release note for I495683"

8 years agoMerge "Clean up recentChangesFlags rollups"
jenkins-bot [Wed, 9 Dec 2015 14:51:22 +0000 (14:51 +0000)]
Merge "Clean up recentChangesFlags rollups"

8 years agoAdditional release note for I495683
Brad Jorsch [Wed, 9 Dec 2015 14:46:43 +0000 (09:46 -0500)]
Additional release note for I495683

Mention that $wgSharedDB, $wgSharedTables, and $wgLocalDatabases must be
set consistently for LocalIdLookup to work with shared user tables.

Change-Id: I92d231b78bf7e4fb05b59d0baf69a65b2f728bf7

8 years agoMerge "Fix stray $1 in some Special:Tags error messages"
jenkins-bot [Wed, 9 Dec 2015 12:20:11 +0000 (12:20 +0000)]
Merge "Fix stray $1 in some Special:Tags error messages"

8 years agoFix stray $1 in some Special:Tags error messages
georggi [Wed, 9 Dec 2015 12:07:33 +0000 (14:07 +0200)]
Fix stray $1 in some Special:Tags error messages

Removed '$1' on line 395 of SpecialTags.php, it should
no longer appear in the text.

Bug: T97639
Change-Id: I7f225df684c20f4d0606f001b90a7fb97595600d

8 years agoClean up recentChangesFlags rollups
Adam Roses Wight [Mon, 19 Oct 2015 07:27:26 +0000 (00:27 -0700)]
Clean up recentChangesFlags rollups

Move ad-hoc variables under an array, in preparation for merging with
RC flags implemented by extensions.

Bug: T120921
Change-Id: I5dd91ba5e5ed36785d9fbf01673defcd227c8b01

8 years agoMerge "Reserve data-mw and data-parsoid attribute prefix for trusted values"
jenkins-bot [Wed, 9 Dec 2015 06:54:56 +0000 (06:54 +0000)]
Merge "Reserve data-mw and data-parsoid attribute prefix for trusted values"

8 years agoReserve data-mw and data-parsoid attribute prefix for trusted values
Brian Wolff [Fri, 13 Nov 2015 04:24:52 +0000 (23:24 -0500)]
Reserve data-mw and data-parsoid attribute prefix for trusted values

Don't let users set attributes starting with data-mw or data-parsoid.
The main idea is to allow MediaWiki to use data-mw-<something>
attributes for trusted input to client side scripts. There have
been a couple security vulnerabilities in the past based on users
being able to manipulate a data attribute, which client side was
assuming was trusted.

Also include data-mw and data-parsoid as both are used by Parsoid
currently.

See https://lists.wikimedia.org/pipermail/wikitech-l/2015-November/083811.html

A corresponding change will also have to be made in Parsoid.

Change-Id: I06585380bde3bc57b17ad76740c5acc2056d7c44

8 years agoMerge "resourceloader: Migrate from msg_resource table to object cache"
jenkins-bot [Wed, 9 Dec 2015 02:19:15 +0000 (02:19 +0000)]
Merge "resourceloader: Migrate from msg_resource table to object cache"

8 years agoUpdate OOjs UI to v0.14.1
James D. Forrester [Tue, 8 Dec 2015 21:46:11 +0000 (13:46 -0800)]
Update OOjs UI to v0.14.1

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

Change-Id: Id0642023abdae574e32620fc0843631d86bae006

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 8 Dec 2015 21:03:08 +0000 (22:03 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I2b0a1c68772037d1e9547290bc5dd8561f08db65

8 years agoMerge "Fix some language depending phpunit tests by using MediaWikiLangTestCase"
jenkins-bot [Tue, 8 Dec 2015 19:22:45 +0000 (19:22 +0000)]
Merge "Fix some language depending phpunit tests by using MediaWikiLangTestCase"

8 years agoresourceloader: Migrate from msg_resource table to object cache
Timo Tijhof [Fri, 13 Nov 2015 00:04:12 +0000 (00:04 +0000)]
resourceloader: Migrate from msg_resource table to object cache

MessageBlobStore class:
* Make logger aware.
* Log an error if json encoding fails.
* Stop using the DB table. WANObjectCache supports everything we need:
  - Batch retrieval.
  - Invalidate keys with wildcard selects or cascading check keys.
* Update tests slightly since the actual update now happens on-demand as
  part of get() instead of within updateMessage().

ResourceLoader class:
* Remove all interaction with the msg_resource table. Remove db table later.
* Refactor code to use a hash of the blob instead of a timestamp.
  Timestamps are unreliable and roll over too frequently for message blob store
  because there is no authoritative source. The timestamps were inferred based on
  when a change is observed. Message overrides from the local wiki have an
  explicit update event when the page is edited. All other messages, such as
  from MediaWiki core and extensions using LocalisationCache, have a single
  timestamp for all messages which rolls over every time the cache is rebuilt.
  A hash is deterministic, and won't cause needless invalidation (T102578).
* Remove redundant pre-fetching in makeModuleResponse().
  This is already done by preloadModuleInfo() in respond().
* Don't bother storing and retreiving empty "{}" objects.
  Instead, detect whether a module's message list is empty at runtime.

ResourceLoaderModule class:
* Make logger aware.
* Log if a module's message blob was not preloaded.

cleanupRemovedModules:
* Now that blobs have a TTL, there's no need to prune old entries.

Bug: T113092
Bug: T92357
Change-Id: Id8c26f41a82597e34013f95294cdc3971a4f52ae

8 years agoRenamed confusing initial $status var in doEditContent()
Aaron Schulz [Tue, 8 Dec 2015 03:10:17 +0000 (19:10 -0800)]
Renamed confusing initial $status var in doEditContent()

Change-Id: I22cad9eb3fb4040e5506b0cccd573871d108d257

8 years agoMerge "Fix edge case in onTransactionIdle()"
jenkins-bot [Tue, 8 Dec 2015 01:33:18 +0000 (01:33 +0000)]
Merge "Fix edge case in onTransactionIdle()"

8 years agoFix edge case in onTransactionIdle()
Aaron Schulz [Tue, 8 Dec 2015 01:26:15 +0000 (17:26 -0800)]
Fix edge case in onTransactionIdle()

If a callback set DBO_TRX, make sure it gets unset if that
is not what the DB was set to before the callbacks ran.

Change-Id: I79b649de02e821494d7f88e8979764ec8a9d0c43

8 years agoUse wgCanonicalNamespace instead of wgNamespaceIds[key] in JS
Timo Tijhof [Tue, 8 Dec 2015 01:17:41 +0000 (01:17 +0000)]
Use wgCanonicalNamespace instead of wgNamespaceIds[key] in JS

Follows-up 746f8fc9a81bf7.

Change-Id: I1e62d7b64a87c26f9a2c4a6a6ca988daac223ede

8 years agoMerge "Remove unused $wgStatsMethod and related UDPProfiler variables"
jenkins-bot [Mon, 7 Dec 2015 22:58:58 +0000 (22:58 +0000)]
Merge "Remove unused $wgStatsMethod and related UDPProfiler variables"

8 years agomediawiki.api: fix badtoken handling with legacy token types
Niklas Laxström [Tue, 1 Dec 2015 16:25:16 +0000 (17:25 +0100)]
mediawiki.api: fix badtoken handling with legacy token types

Manual test plan:

mw.loader.using( 'mediawiki.api.login' ).done( function () {
var
user = 'XXX',
pass = 'YYY',
api = new mw.Api();

api.login( user, pass ).done( function () {
api.postWithToken( 'options', {
action: 'options',
optionname: 'userjs-tokentest',
optionvalue: 1
} ).fail( function () {
console.log( arguments );
} );
} );
} );

Change-Id: I175cf4e3a845cdfe621b6009920fddba6bc1ff12

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 7 Dec 2015 21:51:28 +0000 (22:51 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Iac16753a290ab6b9549d4292265969a9df9b1dc4

8 years agoRemove unused $wgStatsMethod and related UDPProfiler variables
Timo Tijhof [Mon, 7 Dec 2015 19:49:38 +0000 (19:49 +0000)]
Remove unused $wgStatsMethod and related UDPProfiler variables

All unused:
* $wgProfileCallTree
* $wgProfilePerHost
* $wgUDPProfilerHost
* $wgUDPProfilerPort
* $wgUDPProfilerFormatString
* $wgStatsMethod
* $wgAggregateStatsID
* $wgStatsFormatString

The only one still used was $wgProfilePerHost.

Also move release notes for ade945b97a51 from HISTORY to RELEASE-NOTES (Oops!)

Change-Id: Ia0280d23674ace1ac33aa561b06ee73cab865b29

8 years agoMerge "Add $wgMaxUserDBWriteDuration to limit user-generated transactions"
jenkins-bot [Mon, 7 Dec 2015 21:25:24 +0000 (21:25 +0000)]
Merge "Add $wgMaxUserDBWriteDuration to limit user-generated transactions"

8 years agoMerge "Remove obsolete showCacheStats.php and showCacheStats.php"
jenkins-bot [Mon, 7 Dec 2015 20:52:28 +0000 (20:52 +0000)]
Merge "Remove obsolete showCacheStats.php and showCacheStats.php"

8 years agoMerge "objectcache: Improve entry point docs and fix typo in READ_LATEST"
jenkins-bot [Mon, 7 Dec 2015 20:48:49 +0000 (20:48 +0000)]
Merge "objectcache: Improve entry point docs and fix typo in READ_LATEST"

8 years agoMerge "Fix phpdoc of wfArrayToCgi"
jenkins-bot [Mon, 7 Dec 2015 20:39:59 +0000 (20:39 +0000)]
Merge "Fix phpdoc of wfArrayToCgi"

8 years agoobjectcache: Improve entry point docs and fix typo in READ_LATEST
Timo Tijhof [Mon, 7 Dec 2015 19:52:42 +0000 (19:52 +0000)]
objectcache: Improve entry point docs and fix typo in READ_LATEST

Add missing colon in "BagOStuff::READ_LATEST".

Change-Id: I93f55299b49b5240e3ef6354d3a1fca2b416e40d

8 years agoRemove obsolete showCacheStats.php and showCacheStats.php
Timo Tijhof [Sun, 6 Dec 2015 18:20:10 +0000 (18:20 +0000)]
Remove obsolete showCacheStats.php and showCacheStats.php

These scripts interact with keys that used to be set by ParserCache.php.
However this hasn't been the case for a long time now. They use wfIncrStats(),
which is configured by $wgStatsdServer.

Change-Id: Id6a62aec57801085ed684af9362a96eca0914e92

8 years agoMerge "Split out edit/create methods from doEditContent()"
jenkins-bot [Mon, 7 Dec 2015 19:29:23 +0000 (19:29 +0000)]
Merge "Split out edit/create methods from doEditContent()"

8 years agoMerge "tests: Remove unused $wgMemc resets"
jenkins-bot [Mon, 7 Dec 2015 19:24:17 +0000 (19:24 +0000)]
Merge "tests: Remove unused $wgMemc resets"

8 years agoMerge "resourceloader: Log warning if module produces an invalid version hash"
jenkins-bot [Mon, 7 Dec 2015 19:14:40 +0000 (19:14 +0000)]
Merge "resourceloader: Log warning if module produces an invalid version hash"

8 years agoMerge "Allow auto suggestion for subpages of some special pages"
jenkins-bot [Mon, 7 Dec 2015 18:28:04 +0000 (18:28 +0000)]
Merge "Allow auto suggestion for subpages of some special pages"

8 years agoFix phpunit for wikis with $wgResourceLoaderValidateJS = false
umherirrender [Mon, 7 Dec 2015 16:38:28 +0000 (17:38 +0100)]
Fix phpunit for wikis with $wgResourceLoaderValidateJS = false

1) ResourceLoaderModuleTest::testValidateScriptFile
Replace invalid syntax with error logging
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'var a = 'this is';
- {
-invalid'
+'mw.log.error("JavaScript parse error: Parse error: Unexpected token;
token } expected in file 'input' on line 3");'

Change-Id: I0271de4bf2d5bcc50eaf5c0e999e16e554985805

8 years agoFix some language depending phpunit tests by using MediaWikiLangTestCase
umherirrender [Mon, 7 Dec 2015 16:26:16 +0000 (17:26 +0100)]
Fix some language depending phpunit tests by using MediaWikiLangTestCase

Some tests fails on wikis with $wgLanguageCode not = 'en', fix this by
setting the correct language context.

Change-Id: Ia72017df59d8beb5c508832584b2431ffab0f77f

8 years agoresourceloader: Log warning if module produces an invalid version hash
Timo Tijhof [Tue, 10 Nov 2015 03:12:24 +0000 (03:12 +0000)]
resourceloader: Log warning if module produces an invalid version hash

* Add logger to ResourceLoaderContext for convenient use within modules.
* Group related members within ResourceLoaderContext.

Change-Id: Ifbc3de1b6e0838386735f1573df328d9b331ac37

8 years agoMerge "Change wording of 'wlshowtime' for ease of localisation"
jenkins-bot [Mon, 7 Dec 2015 12:45:26 +0000 (12:45 +0000)]
Merge "Change wording of 'wlshowtime' for ease of localisation"

8 years agoMerge "Add magic word for protection expiry"
jenkins-bot [Mon, 7 Dec 2015 10:32:19 +0000 (10:32 +0000)]
Merge "Add magic word for protection expiry"

8 years agoMerge "SpecialWatchlist: Don't display '0' in the selector when 'all' is chosen"
jenkins-bot [Mon, 7 Dec 2015 10:17:22 +0000 (10:17 +0000)]
Merge "SpecialWatchlist: Don't display '0' in the selector when 'all' is chosen"

8 years agoAdd magic word for protection expiry
cenarium [Fri, 27 Nov 2015 18:44:11 +0000 (19:44 +0100)]
Add magic word for protection expiry

This adds a magic word to get the protection expiry for a page for a
given action.
Usage is {{PROTECTIONEXPIRY:action}}.

Bug: T19354
Change-Id: Ia1a20e313781789480dc082bdc7f585c4f0e28df

8 years agoSplit out edit/create methods from doEditContent()
Aaron Schulz [Wed, 4 Nov 2015 01:12:15 +0000 (17:12 -0800)]
Split out edit/create methods from doEditContent()

* Make the method sizes a bit more manageable.
  This will be useful for replacing the begin/commit
  calls later (with startAtomic/endAtomic).
* Cleaned up a few inconsistencies in code style.

Change-Id: I8d66503a5575ca369cd5feb56058af7d24001629

8 years agoMerge "Use wgNamespaceIds constants instead of hard-coded numbers"
jenkins-bot [Mon, 7 Dec 2015 00:19:49 +0000 (00:19 +0000)]
Merge "Use wgNamespaceIds constants instead of hard-coded numbers"

8 years agoSpecialWatchlist: Don't display '0' in the selector when 'all' is chosen
Bartosz Dziewoński [Fri, 4 Dec 2015 15:51:22 +0000 (16:51 +0100)]
SpecialWatchlist: Don't display '0' in the selector when 'all' is chosen

Follow-up to f3daab99f71eb3e41ae472deb8a71d7d6cbd42db.

Change-Id: I6ffc9b93bc1bd6111224c06f124b1bd01107bbd5

8 years agoMerge "objectcache: Make protected WANObjectCache::makePurgeValue non-static"
jenkins-bot [Sun, 6 Dec 2015 22:34:46 +0000 (22:34 +0000)]
Merge "objectcache: Make protected WANObjectCache::makePurgeValue non-static"

8 years agoMerge "tests: Clean up use of mt_rand()"
jenkins-bot [Sun, 6 Dec 2015 22:32:43 +0000 (22:32 +0000)]
Merge "tests: Clean up use of mt_rand()"

8 years agoMerge "tests: Remove unused TableCleanupTest class"
jenkins-bot [Sun, 6 Dec 2015 22:32:39 +0000 (22:32 +0000)]
Merge "tests: Remove unused TableCleanupTest class"

8 years agoMerge "Special:Statistics: Change link target for content pages to hide redirects"
jenkins-bot [Sun, 6 Dec 2015 20:44:44 +0000 (20:44 +0000)]
Merge "Special:Statistics: Change link target for content pages to hide redirects"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 6 Dec 2015 20:31:22 +0000 (21:31 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I0bd8b710b580a76a88e16088ab0f70677a90ea63

8 years agoSpecial:Statistics: Change link target for content pages to hide redirects
Florianschmidtwelzow [Tue, 3 Nov 2015 08:04:46 +0000 (09:04 +0100)]
Special:Statistics: Change link target for content pages to hide redirects

Content pages, as visible on Special:Statistics, doesn't include
redirects in the visible counter. But the link target (Special:AllPages)
includes redirects in the default view, which could be confusing, if a
user expects all pages excluding redirects.

Change the link target of Content pages to hide redirects by default and
add a link for "Pages" to the default view of Special:AllPages.

Change-Id: I1c1ada8e3d16d19db8315eccfbea2c753814659e

8 years agoMerge "Remove obsolete category links code"
Krinkle [Sun, 6 Dec 2015 18:42:39 +0000 (18:42 +0000)]
Merge "Remove obsolete category links code"

8 years agoMerge "Make RefreshLinksJob de-duplication more robust"
jenkins-bot [Sun, 6 Dec 2015 18:41:48 +0000 (18:41 +0000)]
Merge "Make RefreshLinksJob de-duplication more robust"

8 years agotests: Remove unused $wgMemc resets
Timo Tijhof [Sun, 6 Dec 2015 18:06:08 +0000 (18:06 +0000)]
tests: Remove unused $wgMemc resets

If we really need this we can do it in MediaWikiTestCase, next
to the setting of wgMainCacheType. But from what I can see the
code being tested here already doesn't use the old $wgMemc.

Change-Id: I9e4b2109b2f3c18d8d5551bbadae5711c1d4c0a6

8 years agoAllow auto suggestion for subpages of some special pages
umherirrender [Sun, 6 Dec 2015 15:06:01 +0000 (16:06 +0100)]
Allow auto suggestion for subpages of some special pages

The autocomplete search allows special pages to define the list of
subpages to be excepted. Fill up the function to show auto suggestion
for subpages of the following special pages:

Special:AllPages
Special:ChangeContentModel
Special:FileDuplicateSearch
Special:Movepage
Special:PageLanguage
Special:Prefixindex
Special:Recentchangeslinked
Special:Undelete

This makes it easier to navigate to this special pages with a prefilled
title/target field.

Change-Id: I71f77c3001a12d75b901807c20115cead9c64e93