lhc/web/wiklou.git
8 years agoMerge "mw.Upload.BookletLayout: Pass image info when emitting the fileSaved event"
jenkins-bot [Tue, 20 Oct 2015 12:25:12 +0000 (12:25 +0000)]
Merge "mw.Upload.BookletLayout: Pass image info when emitting the fileSaved event"

8 years agoMerge "docs: mw.Upload.Dialog: Add another usage example in introduction"
jenkins-bot [Tue, 20 Oct 2015 12:23:50 +0000 (12:23 +0000)]
Merge "docs: mw.Upload.Dialog: Add another usage example in introduction"

8 years agoMerge "jquery.tablesorter: Minor coding style cleanup and DRY"
jenkins-bot [Tue, 20 Oct 2015 12:03:40 +0000 (12:03 +0000)]
Merge "jquery.tablesorter: Minor coding style cleanup and DRY"

8 years agomw.Upload.BookletLayout: Pass image info when emitting the fileSaved event
Prateek Saxena [Tue, 20 Oct 2015 07:36:03 +0000 (13:06 +0530)]
mw.Upload.BookletLayout: Pass image info when emitting the fileSaved event

Don't want to reach into the layout's upload object to get this. Anything
listening to this event would want the image details.

Change-Id: Idd391382292f31d0570a6548c3b89d5e3795e832

8 years agodocs: mw.Upload.Dialog: Add another usage example in introduction
Prateek Saxena [Tue, 20 Oct 2015 06:54:56 +0000 (12:24 +0530)]
docs: mw.Upload.Dialog: Add another usage example in introduction

Change-Id: I8ed1470b712643b23e86a167f06d2fd1116e8627

8 years agoMerge "Database::selectRowCount(): support $join_conds"
jenkins-bot [Tue, 20 Oct 2015 05:43:10 +0000 (05:43 +0000)]
Merge "Database::selectRowCount(): support $join_conds"

8 years agoDatabase::selectRowCount(): support $join_conds
Ori Livneh [Tue, 20 Oct 2015 02:10:10 +0000 (19:10 -0700)]
Database::selectRowCount(): support $join_conds

Add a $join_conds parameter for Database::selectRowCount(), to allow the caller
to specify join conditions for the subquery that it generates.

Change-Id: I8c0a93713c121bc5b691ae65d6b6d8f8c08c9e4c

8 years agoMerge "resourceloader: Disable flaky test ResourceLoaderModule::getVersionHash"
jenkins-bot [Tue, 20 Oct 2015 02:16:30 +0000 (02:16 +0000)]
Merge "resourceloader: Disable flaky test ResourceLoaderModule::getVersionHash"

8 years agoMerge "build: Use my gmail address for attribution"
jenkins-bot [Tue, 20 Oct 2015 02:05:54 +0000 (02:05 +0000)]
Merge "build: Use my gmail address for attribution"

8 years agoresourceloader: Disable flaky test ResourceLoaderModule::getVersionHash
Timo Tijhof [Tue, 20 Oct 2015 01:57:36 +0000 (02:57 +0100)]
resourceloader: Disable flaky test ResourceLoaderModule::getVersionHash

Bug: T109394
Change-Id: I8e62d9e8326046a895588d9cc63f47e6c0d12eda

8 years agobuild: Use my gmail address for attribution
Timo Tijhof [Tue, 20 Oct 2015 01:43:28 +0000 (02:43 +0100)]
build: Use my gmail address for attribution

Per the .mailmap file, my gmail address is the canonical address
for this purpose.

Change-Id: I85de941ef5f8cf9a80cc35647500c5baaa594ac3

8 years agojquery.tablesorter: Minor coding style cleanup and DRY
Timo Tijhof [Tue, 20 Oct 2015 00:45:07 +0000 (01:45 +0100)]
jquery.tablesorter: Minor coding style cleanup and DRY

* Consistently name 'length' cached variables 'len' (e.g. not 'l').

* Fix invalid documentation syntax for convertSortList().
  (Build is passing because this file is not yet indexed.)

* Remove redundant 'len' variable from pure JavaScript arrays where
  iterations can't change the length. Caching the length is a dated
  practice meant to micro-optimise execution time. For the moment,
  kept any loops with complex iteration bodies as-is, as well as loops
  over structures that are not pure arrays (e.g. NodeList objects).

* Use getParserById() in addParser() instead of duplicating its logic.

Change-Id: I566eff6efd97b5d9672277bacb4cb2b501f4625f

8 years agoMerge "Update ResourceLoader for Ib7fc2f939b"
jenkins-bot [Tue, 20 Oct 2015 00:55:33 +0000 (00:55 +0000)]
Merge "Update ResourceLoader for Ib7fc2f939b"

8 years agoMerge "Rename getMainClusterInstance() -> getLocalClusterInstance()"
jenkins-bot [Tue, 20 Oct 2015 00:37:31 +0000 (00:37 +0000)]
Merge "Rename getMainClusterInstance() -> getLocalClusterInstance()"

8 years agoUpdate ResourceLoader for Ib7fc2f939b
Ori Livneh [Mon, 19 Oct 2015 17:00:50 +0000 (10:00 -0700)]
Update ResourceLoader for Ib7fc2f939b

Use BagOStuff::makeKey() and BagOStuff::makeGlobalKey() instead of
wfMemcKey() and wfGlobalCacheKey().

Change-Id: Id4e58c0e616b74de220faf13ba7c9ea606fef8c1

8 years agoRename getMainClusterInstance() -> getLocalClusterInstance()
Aaron Schulz [Mon, 19 Oct 2015 17:56:41 +0000 (10:56 -0700)]
Rename getMainClusterInstance() -> getLocalClusterInstance()

Also corrected some ObjectCache docs

Change-Id: I322f4cbd72fbd5d4c6887d90ee75d0baddb6ac25

8 years agoRemove ObjectCache dependency from MultiWriteBagOStuff
Aaron Schulz [Fri, 9 Oct 2015 07:15:47 +0000 (00:15 -0700)]
Remove ObjectCache dependency from MultiWriteBagOStuff

This brings it closer to being able to move to /libs.

Change-Id: Ia733f9023e56d4a25ffcb99ca0cc8b29cbb2ad45

8 years agoMerge "Add make(Global)Key() method to WANObjectCache"
jenkins-bot [Tue, 20 Oct 2015 00:14:54 +0000 (00:14 +0000)]
Merge "Add make(Global)Key() method to WANObjectCache"

8 years agoMerge "objectcache: Remove getWithSetCallback() signature backwards-compatability"
jenkins-bot [Mon, 19 Oct 2015 23:56:11 +0000 (23:56 +0000)]
Merge "objectcache: Remove getWithSetCallback() signature backwards-compatability"

8 years agoobjectcache: Remove getWithSetCallback() signature backwards-compatability
Aaron Schulz [Sat, 17 Oct 2015 22:45:08 +0000 (15:45 -0700)]
objectcache: Remove getWithSetCallback() signature backwards-compatability

All callers have been migrated

Change-Id: I7b6b87594dd724434ba24d8206fe07d66c1d5d25

8 years agoFix bad call to Database::getCacheSetOptions()
Aaron Schulz [Mon, 19 Oct 2015 19:57:34 +0000 (12:57 -0700)]
Fix bad call to Database::getCacheSetOptions()

Change-Id: I8ac756851b4cc7d36129fbd4e01282a151dc2694

8 years agoAdd make(Global)Key() method to WANObjectCache
Aaron Schulz [Sat, 17 Oct 2015 22:12:20 +0000 (15:12 -0700)]
Add make(Global)Key() method to WANObjectCache

Change-Id: I8e739fbe8614c9bd1c3595bbf16c8cd423aff7cc

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 19 Oct 2015 19:49:13 +0000 (21:49 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia1685d4f8347c81ef6eb1fe95ebbe66bbe95398e

8 years agoMerge "Convert some users to WANObjectCache for consistency"
jenkins-bot [Mon, 19 Oct 2015 19:29:29 +0000 (19:29 +0000)]
Merge "Convert some users to WANObjectCache for consistency"

8 years agoMerge "Deprecate redundant SquidUpdate::newSimplePurge()"
jenkins-bot [Mon, 19 Oct 2015 19:19:52 +0000 (19:19 +0000)]
Merge "Deprecate redundant SquidUpdate::newSimplePurge()"

8 years agoMore SquidUpdate cleanups
Aaron Schulz [Mon, 19 Oct 2015 16:42:06 +0000 (09:42 -0700)]
More SquidUpdate cleanups

* Remove $wgMaxSquidPurgeTitles; silently discarding URLs is
  the wrong way to limit things. The purge methods already batch,
  which HTCP pushing one at a time. Jobs already batch and have
  $wgJobBackoffThrottling. If code does purge 500 URLs at once
  with no limiting (flooding UDP), then it is already broken.
* Make the HTCP method protected.
* Rename $urlArr field.

Change-Id: I17cced187fe7e93f5a5188022f12202a7746bdb7

8 years agoConvert some users to WANObjectCache for consistency
Aaron Schulz [Thu, 15 Oct 2015 02:45:03 +0000 (19:45 -0700)]
Convert some users to WANObjectCache for consistency

These callers don't need to do purges, but can still perfectly
take advantage of this instance over a plain BagOStuff. Namely:
* Replication and snapshot lag awareness
* Preemptive regeneration
* Easy process cache support

The idea is for there to only be one caching class/factory
to use, instead of having rules for picking which one to use.

Change-Id: I8e362df451c0c28731fc853c044c4c4b8e097f01

8 years agoMerge "Remove "activeusers-updated" cache key usage"
jenkins-bot [Mon, 19 Oct 2015 16:07:54 +0000 (16:07 +0000)]
Merge "Remove "activeusers-updated" cache key usage"

8 years agoMerge "SquidUpdate cleanups"
jenkins-bot [Mon, 19 Oct 2015 15:38:17 +0000 (15:38 +0000)]
Merge "SquidUpdate cleanups"

8 years agoDeprecate redundant SquidUpdate::newSimplePurge()
Aaron Schulz [Mon, 19 Oct 2015 15:24:23 +0000 (08:24 -0700)]
Deprecate redundant SquidUpdate::newSimplePurge()

Change-Id: Id6d92fca2a2b87e23930946f054cecd1f6d433be

8 years agoMerge "Use responsive CSS columns on Special:PrefixIndex and Special:AllPages"
jenkins-bot [Mon, 19 Oct 2015 12:02:36 +0000 (12:02 +0000)]
Merge "Use responsive CSS columns on Special:PrefixIndex and Special:AllPages"

8 years agoMake attributes explicit
Adam Roses Wight [Mon, 19 Oct 2015 07:08:39 +0000 (00:08 -0700)]
Make attributes explicit

Two attributes were referenced, but not declared.

Change-Id: Icb3ce046c15c5709e2f3738ba03e44beaaafd46b

8 years agoApiDelete: Don't pass $user to ChangeTags::addTags()
Kunal Mehta [Mon, 19 Oct 2015 08:45:46 +0000 (01:45 -0700)]
ApiDelete: Don't pass $user to ChangeTags::addTags()

It doesn't take that as a parameter...

Change-Id: I9f78ba4151d131ecf4ca476ecead0ed60408becb

8 years agoSquidUpdate cleanups
Aaron Schulz [Mon, 19 Oct 2015 06:26:05 +0000 (23:26 -0700)]
SquidUpdate cleanups

* Actually implement DeferrableUpdate
* Remove unused parameter to __construct()
* Remove redundant check in newFromTitles()
* Short-circuit purge() if  is empty

Change-Id: I23b1f712001d72305dfa1c49063c3384ea67fb2f

8 years agoFix Maintenance typo
Reedy [Sun, 18 Oct 2015 21:29:03 +0000 (22:29 +0100)]
Fix Maintenance typo

Change-Id: I3e0ae4446f74fac25e1cc79a86ff6e0738ada52d

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 18 Oct 2015 19:39:18 +0000 (21:39 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib609589d2354e36ef89fb77e97932c823087110c

8 years agoUse responsive CSS columns on Special:PrefixIndex and Special:AllPages
Glaisher [Sat, 17 Oct 2015 17:02:49 +0000 (22:02 +0500)]
Use responsive CSS columns on Special:PrefixIndex and Special:AllPages

Stop using table on Special:PrefixIndex and use CSS columns instead and
removed 'column' parameter from this page.
This will also change the weird ordering (side to side) to the standard
top to bottom instead.

The pagination links hide at the corner on small screens. This can be fixed
later.

Bug: T32965
Change-Id: I720d34e21950c18de3c6e0b1d6d8a4461db495cb

8 years agoMerge "mediawiki.special.preferences: Use standard IIFE"
jenkins-bot [Sun, 18 Oct 2015 05:19:53 +0000 (05:19 +0000)]
Merge "mediawiki.special.preferences: Use standard IIFE"

8 years agoMerge "Mention WANObjectCache::TTL_INDEFINITE in set() method"
jenkins-bot [Sat, 17 Oct 2015 22:55:25 +0000 (22:55 +0000)]
Merge "Mention WANObjectCache::TTL_INDEFINITE in set() method"

8 years agoMerge "zhtable makefile: Remove unused variables, fix almost all pep8 errors"
Liangent [Sat, 17 Oct 2015 22:05:27 +0000 (22:05 +0000)]
Merge "zhtable makefile: Remove unused variables, fix almost all pep8 errors"

8 years agomediawiki.js: Show line number of caller of mw.log.warn and .error
Fomafix [Sat, 17 Oct 2015 17:49:31 +0000 (17:49 +0000)]
mediawiki.js: Show line number of caller of mw.log.warn and .error

Currently the JavaScript console shows the line number from mediawiki.js
where the function mw.log.warn is defined.
With this change the JavaScript console shows the file and the line number
where the function mw.log.warn is called.

Inspirited by https://matthewspencer.github.io/console-log/

Change-Id: I2345333fc0158a66ebcb3abf0e94e6e622b3bdc0

8 years agoAvoid creating lots and lots of cat_id gaps
Kevin Israel [Fri, 28 Aug 2015 07:57:01 +0000 (03:57 -0400)]
Avoid creating lots and lots of cat_id gaps

Currently, INSERT...ON DUPLICATE KEY UPDATE is used to update the page
counts in the category table. However, MySQL 5.1.22 and newer, by default,
increment the counter for cat_id before checking for duplicate key errors.
This creates many gaps in the cat_id sequence.

To avoid this, check for existing category rows, and instead UPDATE any
that were found. It is hoped that the extra queries will not significantly
harm performance.

Change-Id: Ic2ab9ff14f04a0c7ea90a5b6756cade0c78e2885

8 years agoCategory::refreshCounts(): Save new counts using upsert()
Kevin Israel [Fri, 28 Aug 2015 07:57:01 +0000 (03:57 -0400)]
Category::refreshCounts(): Save new counts using upsert()

This doesn't completely address the TODO comment. However, I intend
to finish doing so in a separate change.

Change-Id: I71c6dafd4223d79a0153fa8ce7cb0ee1354c0ec6

8 years agoMerge "Add `makeKey` and `makeGlobalKey` to BagOStuff"
jenkins-bot [Sat, 17 Oct 2015 01:06:12 +0000 (01:06 +0000)]
Merge "Add `makeKey` and `makeGlobalKey` to BagOStuff"

8 years agoAvoid exposure of local path in PNG thumbnails
Darian Anthony Patrick [Wed, 12 Aug 2015 19:47:36 +0000 (12:47 -0700)]
Avoid exposure of local path in PNG thumbnails

Bug: T108616
Change-Id: I952068d2d175d71f86dec0dbb92af5a122c05a49

8 years agoMerge "SECURITY: RevDel: Check all revisions for suppression, not just the first"
jenkins-bot [Fri, 16 Oct 2015 21:45:55 +0000 (21:45 +0000)]
Merge "SECURITY: RevDel: Check all revisions for suppression, not just the first"

8 years agoMerge "SECURITY: API: Improve validation in chunked uploading"
jenkins-bot [Fri, 16 Oct 2015 21:45:51 +0000 (21:45 +0000)]
Merge "SECURITY: API: Improve validation in chunked uploading"

8 years agoSECURITY: RevDel: Check all revisions for suppression, not just the first
Brad Jorsch [Thu, 9 Apr 2015 17:59:16 +0000 (13:59 -0400)]
SECURITY: RevDel: Check all revisions for suppression, not just the first

If any of the revisions in the list are deleted, do not allow changing
the permissions without suppressrevision.

Bug: T95589
Change-Id: Ia8a3ef13b73925d14a79775a50d46b939c01664f

8 years agoSECURITY: API: Improve validation in chunked uploading
csteipp [Tue, 8 Sep 2015 17:59:44 +0000 (10:59 -0700)]
SECURITY: API: Improve validation in chunked uploading

This fixes a few shortcomings in the chunked uploader:
* Raises an error if offset + chunksize > filesize.
* Enforces a minimum chunk size for non-final chunks.
* Refuses additional chunks after seeing a final chunk.
* Status of a chunked upload in progress is now available with
  'checkstatus'.

Bug: T91203
Bug: T91205
Change-Id: I2262db1bc8460616b069c564475d2e4148001768

8 years agoMerge "SECURITY: Throttle uploads"
jenkins-bot [Fri, 16 Oct 2015 21:09:32 +0000 (21:09 +0000)]
Merge "SECURITY: Throttle uploads"

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 16 Oct 2015 19:51:25 +0000 (21:51 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Iec6e48de8a855f6f21b1cded93cb03bd9e5f7d56

8 years agoMerge "Clarify that ParserOutput::getDisplayTitle() returns HTML."
jenkins-bot [Fri, 16 Oct 2015 19:03:15 +0000 (19:03 +0000)]
Merge "Clarify that ParserOutput::getDisplayTitle() returns HTML."

8 years agoSECURITY: Throttle uploads
csteipp [Thu, 12 Mar 2015 01:44:44 +0000 (18:44 -0700)]
SECURITY: Throttle uploads

Add throttle check in ApiUpload and SpecialUpload.

Bug: T91850
Change-Id: If33cc99f304aab2486507c7500b4abb06b6b5d70

8 years agoClarify that ParserOutput::getDisplayTitle() returns HTML.
daniel [Fri, 16 Oct 2015 18:03:33 +0000 (20:03 +0200)]
Clarify that ParserOutput::getDisplayTitle() returns HTML.

This change only improves documentation, it does not touch code.

For reference:
* CoreParserFunctions::displaytitle generates HTML, with &, < and so on
property escaped. OutputPage::setPageTitle() treats the input as wikitext,
which works for both plain text and HTML.

* Wikibase calls ParserOutput::setDisplayTitle() with HTML including <span>
structures.

In the API action=query&prop=pageprops returns HTML. There doesn't seem to
be a good place to document that fact, though.

Change-Id: I043b26b82f066abe2830a81d3bc073543b3748d8

8 years agoMerge "mw.ForeignStructuredUpload.BookletLayout: Switch order of widgets"
jenkins-bot [Fri, 16 Oct 2015 15:29:03 +0000 (15:29 +0000)]
Merge "mw.ForeignStructuredUpload.BookletLayout: Switch order of widgets"

8 years agomw.ForeignStructuredUpload.BookletLayout: Switch order of widgets
Prateek Saxena [Fri, 16 Oct 2015 14:39:12 +0000 (20:09 +0530)]
mw.ForeignStructuredUpload.BookletLayout: Switch order of widgets

As per Pau's observation and mw.Upload.BookletLayout, the description
input should come after the name input.

Change-Id: I6492f305734268de15d721476bf751e5bc9c805b

8 years agoTypo in comment of Html::radio()
Edward Chernenko [Thu, 15 Oct 2015 21:07:55 +0000 (00:07 +0300)]
Typo in comment of Html::radio()

Incorrectly copied documentation from Html::check().

Change-Id: I508e4beedb01b62989a7f37466c47ddd37091b49

8 years agoMerge "More specific @return doc in WikiPage::getDeletionUpdates"
jenkins-bot [Fri, 16 Oct 2015 11:46:27 +0000 (11:46 +0000)]
Merge "More specific @return doc in WikiPage::getDeletionUpdates"

8 years agozhtable makefile: Remove unused variables, fix almost all pep8 errors
Chad Horohoe [Fri, 16 Oct 2015 06:41:44 +0000 (23:41 -0700)]
zhtable makefile: Remove unused variables, fix almost all pep8 errors

Change-Id: I7ab1ffeeb2a5592fbe143f27801c11248c167093

8 years agoMerge "LoadBalancer::getLaggedSlaveMode needs to know about the wiki"
jenkins-bot [Fri, 16 Oct 2015 03:35:25 +0000 (03:35 +0000)]
Merge "LoadBalancer::getLaggedSlaveMode needs to know about the wiki"

8 years agoMerge "Fix mw.notify not being visible if first loaded when scrolled down"
jenkins-bot [Thu, 15 Oct 2015 20:05:19 +0000 (20:05 +0000)]
Merge "Fix mw.notify not being visible if first loaded when scrolled down"

8 years agoMerge "ApiMessage: Improve documentation"
jenkins-bot [Thu, 15 Oct 2015 19:51:50 +0000 (19:51 +0000)]
Merge "ApiMessage: Improve documentation"

8 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Thu, 15 Oct 2015 19:12:47 +0000 (19:12 +0000)]
Merge "Localisation updates from https://translatewiki.net."

8 years agoApiMessage: Improve documentation
Bartosz Dziewoński [Tue, 13 Oct 2015 21:30:04 +0000 (23:30 +0200)]
ApiMessage: Improve documentation

Based on an excerpt from Anomie's IRC conversation with me.

Change-Id: I02661548a30fd40eaa72d77c98a6801dbbaff456

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 15 Oct 2015 19:07:09 +0000 (21:07 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia14ad3a350ff7e552c0001c5ccf4cda36e192294

8 years agoMerge "Move some styles of convenience links to mediawiki.special"
jenkins-bot [Thu, 15 Oct 2015 19:06:38 +0000 (19:06 +0000)]
Merge "Move some styles of convenience links to mediawiki.special"

8 years agoMerge "Move styles for Special:FileDuplicateSearch to mediawiki.special"
jenkins-bot [Thu, 15 Oct 2015 19:06:32 +0000 (19:06 +0000)]
Merge "Move styles for Special:FileDuplicateSearch to mediawiki.special"

8 years agoMerge "Improve the API help for format=xmlfm"
jenkins-bot [Thu, 15 Oct 2015 17:17:33 +0000 (17:17 +0000)]
Merge "Improve the API help for format=xmlfm"

8 years agoRemove unused ApiQueryORM
Reedy [Thu, 15 Oct 2015 16:53:14 +0000 (17:53 +0100)]
Remove unused ApiQueryORM

Bug: T114538
Change-Id: I4673977cef336ab3b4e375a3deab4d4fc67830eb

8 years agoMake Special:Redirect work for blocked users and in read-only mode
Glaisher [Thu, 15 Oct 2015 16:31:46 +0000 (21:31 +0500)]
Make Special:Redirect work for blocked users and in read-only mode

Bug: T115570
Change-Id: Id26af6efe9dc7eddb2066a2f61c86116305fff7c

8 years agoMention WANObjectCache::TTL_INDEFINITE in set() method
Aaron Schulz [Thu, 15 Oct 2015 15:09:48 +0000 (08:09 -0700)]
Mention WANObjectCache::TTL_INDEFINITE in set() method

Change-Id: I6e5cb2e7ba34ceaf4ca128e4b32da99d08917156

8 years agoMerge "objectcache: Rename WANObjectCache TTL_NONE to TTL_INDEFINITE"
jenkins-bot [Thu, 15 Oct 2015 15:01:07 +0000 (15:01 +0000)]
Merge "objectcache: Rename WANObjectCache TTL_NONE to TTL_INDEFINITE"

8 years agoUse specified pageId for LinksDeletionUpdate→DeleteLinksJob
Brad Jorsch [Thu, 15 Oct 2015 13:09:02 +0000 (09:09 -0400)]
Use specified pageId for LinksDeletionUpdate→DeleteLinksJob

Not page->getId() which may now be 0 due to the page having been
deleted.

Bug: T115586
Change-Id: I5a3482bbe1df23dda0f33e7d675b06d616395bb6

8 years agoMore specific @return doc in WikiPage::getDeletionUpdates
Thiemo Mättig [Thu, 15 Oct 2015 08:31:32 +0000 (10:31 +0200)]
More specific @return doc in WikiPage::getDeletionUpdates

Change-Id: I8d126944411c91f87cb3bec3269e60d23f5dceac

8 years agoAdded a parenthetical to fileextensions description
Sumit Asthana [Sun, 21 Dec 2014 14:20:08 +0000 (19:50 +0530)]
Added a parenthetical to fileextensions description

Changed "fileextensions for more clarity of the description.

Bug: T62121
Change-Id: Ida361a370069e6d5565a5ef5b03f0976dfd3515b

8 years agoImprove the API help for format=xmlfm
S Page [Wed, 25 Feb 2015 06:48:52 +0000 (22:48 -0800)]
Improve the API help for format=xmlfm

I thought it dumped raw text with attached JSON "debugging elements",
but it's just jsonfm with a little extra.

Change-Id: I55f2ae2c9aa295bcb972b4e02e7352532d64341c

8 years agoRemove "activeusers-updated" cache key usage
Aaron Schulz [Thu, 15 Oct 2015 03:51:51 +0000 (20:51 -0700)]
Remove "activeusers-updated" cache key usage

RecentChangesUpdateJob already takes care of this.

Change-Id: I166b37c60fbb05046150a63592fa26fc47027181

8 years agoobjectcache: Rename WANObjectCache TTL_NONE to TTL_INDEFINITE
Timo Tijhof [Tue, 13 Oct 2015 15:15:36 +0000 (11:15 -0400)]
objectcache: Rename WANObjectCache TTL_NONE to TTL_INDEFINITE

"None" has a somewhat unobvious meaning, also ambiguous with "uncachable".

Change-Id: I799de385427aeb8f581d51800606552bdc998252

8 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 14 Oct 2015 19:33:50 +0000 (21:33 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I821a5724c2f14c6d1697d60454cd17618998e2bd

8 years agoRe-enable last phpcs rule
Reedy [Sat, 26 Sep 2015 18:04:30 +0000 (19:04 +0100)]
Re-enable last phpcs rule

Bug: T102609
Change-Id: I49eb778ccb5f0a3662fe4573872d1235c52fdd81

8 years agoMerge "Move comment in backup_PageTest.php"
jenkins-bot [Wed, 14 Oct 2015 17:06:09 +0000 (17:06 +0000)]
Merge "Move comment in backup_PageTest.php"

8 years agoMerge "Fix array index spacing in ResourceLoaderEditToolbarModule"
jenkins-bot [Wed, 14 Oct 2015 17:06:04 +0000 (17:06 +0000)]
Merge "Fix array index spacing in ResourceLoaderEditToolbarModule"

8 years agoMerge "Change some comment style in userOptions.inc"
jenkins-bot [Wed, 14 Oct 2015 17:06:00 +0000 (17:06 +0000)]
Merge "Change some comment style in userOptions.inc"

8 years agoMerge "Add curly braces to while"
jenkins-bot [Wed, 14 Oct 2015 16:56:10 +0000 (16:56 +0000)]
Merge "Add curly braces to while"

8 years agoMerge "Remove empty comment line from GlobalTest.php"
jenkins-bot [Wed, 14 Oct 2015 16:56:06 +0000 (16:56 +0000)]
Merge "Remove empty comment line from GlobalTest.php"

8 years agoAdd $suppress to ArticleDelete hook
Alex Monk [Sun, 20 Sep 2015 21:50:19 +0000 (22:50 +0100)]
Add $suppress to ArticleDelete hook

We should be telling extensions whether a deletion is a suppression or not, so
they can behave appropriately.

Change-Id: I2cb6ffd61dd12766fe0266514c9360ff0c90b788

8 years agoUse the frame 'type' in wfFormatStackFrame, like MWExceptionHandler::prettyPrintTrace
Alex Monk [Fri, 9 Oct 2015 17:20:25 +0000 (18:20 +0100)]
Use the frame 'type' in wfFormatStackFrame, like MWExceptionHandler::prettyPrintTrace

Instead of assuming '::'

Change-Id: I2452bc5ebd3716eb61f53da41a0050f4833fb5a4

8 years agomediawiki.special.preferences: Use standard IIFE
Bartosz Dziewoński [Wed, 14 Oct 2015 14:39:32 +0000 (16:39 +0200)]
mediawiki.special.preferences: Use standard IIFE

Directly using 'mediaWiki' variable rather than 'mw' makes it harder
to grep for things.

Change-Id: I2652ecd9a52b5ba05989dcfe8b106e3b4dd504d7

8 years agoMark Title::setFragment() as @private
Kunal Mehta [Wed, 30 Sep 2015 17:08:59 +0000 (10:08 -0700)]
Mark Title::setFragment() as @private

It is deprecated for public use, so indicate that it should only be used
privately.

Change-Id: I1b32f52f427a36ddb81bd7befadc9099ebc4f191

8 years agoadding 7zip archives to the MIMEs
dennisroczek [Tue, 29 Sep 2015 09:00:25 +0000 (11:00 +0200)]
adding 7zip archives to the MIMEs

Change-Id: Ib3392b7fcec475c153099a1b92fe195c5eb4b195

8 years agoHandle $frame['function'] not being set in stack frames
Alex Monk [Fri, 9 Oct 2015 16:58:26 +0000 (17:58 +0100)]
Handle $frame['function'] not being set in stack frames

Bug: T115107
Change-Id: I9fbfcd53fbcba1800a924acb1a1702c3c9037cc5

8 years agoMerge "Add recentChangesLine to ChangesList"
jenkins-bot [Wed, 14 Oct 2015 12:30:11 +0000 (12:30 +0000)]
Merge "Add recentChangesLine to ChangesList"

8 years agoUse correct @codingStandardsIgnore in DairikiDiff.php
umherirrender [Wed, 14 Oct 2015 10:21:55 +0000 (12:21 +0200)]
Use correct @codingStandardsIgnore in DairikiDiff.php

@codingStandardsIgnoreFile is for whole files, use
@codingStandardsIgnoreStart instead

Also correct a MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.
SingleSpaceBeforeSingleLineComment sniff in the same file

Follows I06cdab4616b5bff47c85152df28f18c861730a23

Change-Id: I75e6e936e2fb4453bd56848ff39cabd92ae171fc

8 years agoRemove empty comment line from GlobalTest.php
umherirrender [Wed, 14 Oct 2015 10:14:23 +0000 (12:14 +0200)]
Remove empty comment line from GlobalTest.php

Remove empty line comments as found by the
MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.EmptyComment sniff

Change-Id: Ibd60165ae8ddef2a2fd443856e7476f32a0c6392

8 years agoFix array index spacing in ResourceLoaderEditToolbarModule
umherirrender [Wed, 14 Oct 2015 09:55:43 +0000 (11:55 +0200)]
Fix array index spacing in ResourceLoaderEditToolbarModule

Code style is not using spaces in array index

Follows Ic3eab71691e502bfe19bdf4eb6f82cc679a7782f

Change-Id: I0e20787c41d2edbc2899308647092ed6831d2489

8 years agoAdd curly braces to while
umherirrender [Wed, 14 Oct 2015 09:42:00 +0000 (11:42 +0200)]
Add curly braces to while

Follows Iaa1a479b5eefcae0fc8f82b1d20e9575d609c0e9

Change-Id: I7f2b9b12e3282f5b8ba54a315fa12f1a97985572

8 years agoRevert "Add // @codingStandardsIgnoreFile to FormatMetadata"
Legoktm [Wed, 7 Oct 2015 06:08:26 +0000 (06:08 +0000)]
Revert "Add // @codingStandardsIgnoreFile to FormatMetadata"

For testing.

This reverts commit df706d2457e675ce3896b6b2aace27dac3fb9ff1.

Change-Id: If63199293ac3539030f3503fbcbd5e0f4aa2eece

8 years agoMerge "Show a confirmation message on Special:UserRights"
jenkins-bot [Wed, 14 Oct 2015 09:13:36 +0000 (09:13 +0000)]
Merge "Show a confirmation message on Special:UserRights"

8 years agoChange some comment style in userOptions.inc
umherirrender [Wed, 14 Oct 2015 07:34:55 +0000 (09:34 +0200)]
Change some comment style in userOptions.inc

Change-Id: Ida429683ee5b6194c96d782cf5fb4e0527c89103

8 years agoMove comment in backup_PageTest.php
umherirrender [Wed, 14 Oct 2015 07:03:15 +0000 (09:03 +0200)]
Move comment in backup_PageTest.php

Move the comment at the begin of the function out of it to a doc
comment.

Change-Id: I6febf51a74de88204d54b1e3251df187197c1819