lhc/web/wiklou.git
7 years agoAdd missing file locks to deleteArchivedFiles.php
Aaron Schulz [Thu, 21 Jul 2016 05:05:59 +0000 (22:05 -0700)]
Add missing file locks to deleteArchivedFiles.php

Change-Id: I512ce5a1a4f00039fbe26f1c5cd1aec655eea263

7 years agoSupport <form> tags in Balancer.
C. Scott Ananian [Thu, 14 Jul 2016 22:00:20 +0000 (18:00 -0400)]
Support <form> tags in Balancer.

Change-Id: I893fc231fea71f58449ed426d64ac99fdcb31d9e

7 years agoMerge "Provide onTransaction* callbacks with the transaction result"
jenkins-bot [Thu, 21 Jul 2016 03:09:17 +0000 (03:09 +0000)]
Merge "Provide onTransaction* callbacks with the transaction result"

7 years agoSupport <select> tags in Balancer.
C. Scott Ananian [Thu, 14 Jul 2016 21:00:22 +0000 (17:00 -0400)]
Support <select> tags in Balancer.

Change-Id: Ibc346624a9d035c98a29132a541e7ed6d82b364e

7 years agoProvide onTransaction* callbacks with the transaction result
Aaron Schulz [Thu, 21 Jul 2016 02:32:55 +0000 (19:32 -0700)]
Provide onTransaction* callbacks with the transaction result

This can later be used to cancel certain deferred updates.

Change-Id: Ib6649b6ca400f15ff441531d0fd6aecc3e4619eb

7 years agoMerge "Minor bug fixes to Balancer."
jenkins-bot [Thu, 21 Jul 2016 02:11:45 +0000 (02:11 +0000)]
Merge "Minor bug fixes to Balancer."

7 years agoresourceloader: Make createLoaderQuery() protected
Timo Tijhof [Wed, 20 Jul 2016 19:47:43 +0000 (20:47 +0100)]
resourceloader: Make createLoaderQuery() protected

Only used once in this class. Nowhere else in Wikimedia Git.

Change-Id: I190bde79cc72dc40af4ccdd51f0e473003ba39b9

7 years agoresourceloader: Remove deprecated ResourceLoader::makeLoaderURL()
Timo Tijhof [Wed, 20 Jul 2016 19:43:54 +0000 (20:43 +0100)]
resourceloader: Remove deprecated ResourceLoader::makeLoaderURL()

Deprecated since MediaWiki 1.24. Not used anywhere in Wikimedia Git.

Change-Id: I9d9b356fd61f13112e85cbe659b337ecb3c92088

7 years agoMerge "Title::getLinkURL(): Allow expanding PROTO_RELATIVE too"
jenkins-bot [Wed, 20 Jul 2016 21:56:21 +0000 (21:56 +0000)]
Merge "Title::getLinkURL(): Allow expanding PROTO_RELATIVE too"

7 years agoProfileStub: Remove getCurrentSection(), unused
Chad Horohoe [Wed, 20 Jul 2016 20:18:27 +0000 (13:18 -0700)]
ProfileStub: Remove getCurrentSection(), unused

No callers, no implementations in other Profiler classes

Change-Id: I5b5364d5b40964944e1595056b4c292610fcdf36

7 years agoMerge "Add $direct parameter to UserLoginComplete hook"
jenkins-bot [Wed, 20 Jul 2016 20:29:57 +0000 (20:29 +0000)]
Merge "Add $direct parameter to UserLoginComplete hook"

7 years agoMerge "Simplify lock release in LinksDeletionUpdate"
jenkins-bot [Wed, 20 Jul 2016 20:12:26 +0000 (20:12 +0000)]
Merge "Simplify lock release in LinksDeletionUpdate"

7 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Wed, 20 Jul 2016 20:09:34 +0000 (20:09 +0000)]
Merge "Localisation updates from https://translatewiki.net."

7 years agoMerge "Convert SiteStatsUpdate to using newer addCallableUpdate method"
jenkins-bot [Wed, 20 Jul 2016 20:09:15 +0000 (20:09 +0000)]
Merge "Convert SiteStatsUpdate to using newer addCallableUpdate method"

7 years agoMerge "Move updateNotificationTimestamp callback to DeferredUpdates"
jenkins-bot [Wed, 20 Jul 2016 20:03:25 +0000 (20:03 +0000)]
Merge "Move updateNotificationTimestamp callback to DeferredUpdates"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 20 Jul 2016 20:03:24 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I3f97a063700597ee00037cdbcbd5a77e8951f8df

7 years agoMerge "Fix coverage annotations"
jenkins-bot [Wed, 20 Jul 2016 19:59:20 +0000 (19:59 +0000)]
Merge "Fix coverage annotations"

7 years agoMerge "Update and reformat docs/distributors.txt"
jenkins-bot [Wed, 20 Jul 2016 19:54:30 +0000 (19:54 +0000)]
Merge "Update and reformat docs/distributors.txt"

7 years agoUpdate and reformat docs/distributors.txt
Max Semenik [Wed, 20 Jul 2016 06:14:57 +0000 (23:14 -0700)]
Update and reformat docs/distributors.txt

Change-Id: If9454ce170f3c46dbed89c3e542fcd5eb2b68103

7 years agoMerge "Exclude duplicate srcset urls"
jenkins-bot [Wed, 20 Jul 2016 17:39:56 +0000 (17:39 +0000)]
Merge "Exclude duplicate srcset urls"

7 years agoDo not collate "ا" and "و" in Persian language for category sort
Amir Sarabadani [Wed, 20 Jul 2016 13:05:12 +0000 (17:35 +0430)]
Do not collate "ا" and "و" in Persian language for category sort

Bug: T139110
Change-Id: If174e02160c954500233e3a57945e267f2b4ae29

7 years agoAdd $direct parameter to UserLoginComplete hook
Gergő Tisza [Wed, 20 Jul 2016 00:25:12 +0000 (17:25 -0700)]
Add $direct parameter to UserLoginComplete hook

This will help to differentiate between actual login and visiting
the login page while already logged in.

Bug: T140853
Change-Id: If8582ff61aee62b1d424e473b230ca883ddb6d05

7 years agoApiPurge: Do not die on non content pages
umherirrender [Tue, 19 Jul 2016 16:15:13 +0000 (18:15 +0200)]
ApiPurge: Do not die on non content pages

Some pages seems to have page_latest = 0, and therefore no content to
linkupdate. To not get a BadMethodCallException (see T140514) there is a
null checked needed.

Change-Id: I1ebfcf131ad3f59f38ec2583650eba5b43bac999

7 years agoMerge "Add a test for entity expansion OOM in XmlTypeCheck"
jenkins-bot [Wed, 20 Jul 2016 13:53:39 +0000 (13:53 +0000)]
Merge "Add a test for entity expansion OOM in XmlTypeCheck"

7 years agoExclude duplicate srcset urls
Matthias Mullie [Mon, 18 Jul 2016 12:52:08 +0000 (14:52 +0200)]
Exclude duplicate srcset urls

Bug: T135550
Change-Id: I956dc155426739d60052a0dc77dafdf0414d5bd7

7 years agoFix coverage annotations
Max Semenik [Wed, 20 Jul 2016 06:05:35 +0000 (23:05 -0700)]
Fix coverage annotations

Broken by Id1071fc0647892438e5cd0e3ee621fbdaaa64014
Causes https://integration.wikimedia.org/ci/job/mediawiki-core-code-coverage/2146/console

Change-Id: I9dd0ff7a5fa17c6395dee52ad87faf1f8e612904

7 years agoSiteConfiguration: Remove isLocalVHost(), deprecated since 1.25
Chad Horohoe [Tue, 19 Jul 2016 17:29:43 +0000 (10:29 -0700)]
SiteConfiguration: Remove isLocalVHost(), deprecated since 1.25

No callers anywhere anymore.

Change-Id: I5f85b3cf60a59d28206bf56a0f8e33c812248d5d

7 years agoMove updateNotificationTimestamp callback to DeferredUpdates
Aaron Schulz [Tue, 19 Jul 2016 19:51:57 +0000 (12:51 -0700)]
Move updateNotificationTimestamp callback to DeferredUpdates

* This puts the complex logic here after the commit step for
  all DBs, making the main multi-DB transaction more likely
  to be atomic.
* Also fixed the reuseConnection() call by getting a new
  handle in the callback.

Change-Id: I449a521423ff13bfbf49bdaa6e7e6df2145c8751

7 years agoMerge "Improvements to RefreshLinksJob/DeleteLinksJob locking"
jenkins-bot [Tue, 19 Jul 2016 21:43:17 +0000 (21:43 +0000)]
Merge "Improvements to RefreshLinksJob/DeleteLinksJob locking"

7 years agoMerge "Remove redundant onTransactionIdle() call from WikiPage::doPurge"
jenkins-bot [Tue, 19 Jul 2016 21:10:05 +0000 (21:10 +0000)]
Merge "Remove redundant onTransactionIdle() call from WikiPage::doPurge"

7 years agoConvert SiteStatsUpdate to using newer addCallableUpdate method
Aaron Schulz [Tue, 19 Jul 2016 20:53:51 +0000 (13:53 -0700)]
Convert SiteStatsUpdate to using newer addCallableUpdate method

Change-Id: Ic6037b90edecc936432e997c504e81b3ae8732ad

7 years agoRemove redundant onTransactionIdle() call from WikiPage::doPurge
Aaron Schulz [Tue, 19 Jul 2016 20:51:55 +0000 (13:51 -0700)]
Remove redundant onTransactionIdle() call from WikiPage::doPurge

Change-Id: I18b03ae6d2f865bbe7eb072c68b2648564ec4d6f

7 years agoMerge "Resources: Convert mediawiki.content.json.css to less file"
jenkins-bot [Tue, 19 Jul 2016 20:25:50 +0000 (20:25 +0000)]
Merge "Resources: Convert mediawiki.content.json.css to less file"

7 years agoMerge "HttpFunctions: Move isLocalUrl() into MWHttpRequest and make it private"
jenkins-bot [Tue, 19 Jul 2016 20:11:42 +0000 (20:11 +0000)]
Merge "HttpFunctions: Move isLocalUrl() into MWHttpRequest and make it private"

7 years agoImprovements to RefreshLinksJob/DeleteLinksJob locking
Aaron Schulz [Fri, 15 Jul 2016 20:35:03 +0000 (13:35 -0700)]
Improvements to RefreshLinksJob/DeleteLinksJob locking

* Removed the lockAndGetLatest() call which caused contention problems.
  Previously, job #2 could block on job #1 in that method, then job #1
  yields the row lock to job #2 in LinksUpdate::acquirePageLock() by
  committing, then job #1 blocks on job #2 in updateLinksTimestamp().
  This caused timeout errors. It also is not fully safe ever since
  batching and acquirePageLock() was added.
* Add an outer getScopedLockAndFlush() call to runForTitle() which
  avoids this contention (as well as contention with page edits)
  but still prevents older jobs from clobbering newer jobs. Edits
  can happen concurrently, since they will enqueue a job post-commit
  that will block on the lock.
* Use the same lock in DeleteLinksJob to edit/deletion races.

Change-Id: I9e2d1eefd7cbb3d2f333c595361d070527d6f0c5

7 years agoSimplify lock release in LinksDeletionUpdate
Aaron Schulz [Tue, 19 Jul 2016 20:02:08 +0000 (13:02 -0700)]
Simplify lock release in LinksDeletionUpdate

The callback already flushes/commits the transaction.

Change-Id: I4875fef1434788ee0c689d9fcae6817863a1ba81

7 years agoResources: Convert mediawiki.content.json.css to less file
jdlrobson [Tue, 19 Jul 2016 18:47:59 +0000 (11:47 -0700)]
Resources: Convert mediawiki.content.json.css to less file

Using a LESS file gives us access to variables. In a following patchset
I will need access to the deviceTabletWidth variable to apply some responsive
styles.

Change-Id: I2acffa71fc4fce89c6803c921ea44ae2f908bd77

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 19 Jul 2016 19:58:55 +0000 (21:58 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I3c34f59d50eeaf25272513747769419aa32007dc

7 years agoMerge "resourceloader: Release saveFileDependencies() lock on rollback"
jenkins-bot [Tue, 19 Jul 2016 19:41:43 +0000 (19:41 +0000)]
Merge "resourceloader: Release saveFileDependencies() lock on rollback"

7 years agoresourceloader: Release saveFileDependencies() lock on rollback
Aaron Schulz [Tue, 19 Jul 2016 18:34:25 +0000 (11:34 -0700)]
resourceloader: Release saveFileDependencies() lock on rollback

Change-Id: Iffa42c8214af4e17285c411795b46d1fe2708285

7 years agoMerge "Only store currently-existing categories in the categories table"
jenkins-bot [Tue, 19 Jul 2016 19:26:56 +0000 (19:26 +0000)]
Merge "Only store currently-existing categories in the categories table"

7 years agoMerge "Added Range support to FileBackend::streamFile()"
Brion VIBBER [Tue, 19 Jul 2016 19:20:12 +0000 (19:20 +0000)]
Merge "Added Range support to FileBackend::streamFile()"

7 years agoHttpFunctions: Move isLocalUrl() into MWHttpRequest and make it private
Chad Horohoe [Tue, 19 Jul 2016 18:01:28 +0000 (11:01 -0700)]
HttpFunctions: Move isLocalUrl() into MWHttpRequest and make it private

Nothing else calls this, and it really shouldn't be used except for
determining if a request should be proxied.

While we're here, actually support HTTPS.

Change-Id: I5edf47f75ebb7c1705d0c406ee7d19425f348eb4

7 years agoRemove support for getenv('http_proxy') in MediaWiki
Chad Horohoe [Tue, 19 Jul 2016 15:20:43 +0000 (08:20 -0700)]
Remove support for getenv('http_proxy') in MediaWiki

PHP (and other programming languages) are vulnerable to an exploit
when making external requests via a proxy when a client provides a
Proxy header. See https://httpoxy.org/ for more information.

MediaWiki now requires $wgHTTPProxy to be set when attempting to
use a proxy for requests and can no longer rely on http_proxy
environment variables. As it exists, this code is inherently unsafe
on case-insensitive platforms (eg: Windows) and hard to be sure of
for other platforms.

All users using a proxy for MediaWiki and *not* setting $wgHTTPProxy
are advised to do so immediately to mitigate this problem. This will
be required as of the next security release.

All extensions maintained in Git/Gerrit appear to be Doing The Right
Thing and not trying to use getenv('http_proxy') directly. This would
be a bad thing to start doing. Call Http::getProxy() if you need to
manually get a proxy from MW for external requests.

Bug: T140658
Change-Id: I122583ad98d867c5855c3e2f955fe47787668589

7 years agoMerge "Follow-up 83ec590: Add new updateExtensionJsonSchema to autoload"
jenkins-bot [Tue, 19 Jul 2016 03:11:43 +0000 (03:11 +0000)]
Merge "Follow-up 83ec590: Add new updateExtensionJsonSchema to autoload"

7 years agoAdded GTID support to slave lag methods
Aaron Schulz [Sat, 21 May 2016 00:26:08 +0000 (17:26 -0700)]
Added GTID support to slave lag methods

The IDs will be included in MySQLMasterPos objects and,
if specified by config, in slave lag wait methods.

Bug: T135027
Change-Id: I1dfc0210b715b449ec07760c712d0267763f2697

7 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Tue, 19 Jul 2016 01:15:08 +0000 (01:15 +0000)]
Merge "Sync up with Parsoid parserTests."

7 years agoSync up with Parsoid parserTests.
Arlo Breault [Tue, 19 Jul 2016 00:59:57 +0000 (17:59 -0700)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit 36075c7fc242ad2fd7bba05661606722ebda49aa

Change-Id: I5bbf1c0a1e9602983024ce30eb28a33648246b3c

7 years agoMerge "ContribsPager: Disallow looking too far in the past for 'newbies' queries"
jenkins-bot [Tue, 19 Jul 2016 00:24:18 +0000 (00:24 +0000)]
Merge "ContribsPager: Disallow looking too far in the past for 'newbies' queries"

7 years agoMerge "Truncate gallery caption filenames with CSS"
jenkins-bot [Mon, 18 Jul 2016 23:39:30 +0000 (23:39 +0000)]
Merge "Truncate gallery caption filenames with CSS"

7 years agoFollow-up 83ec590: Add new updateExtensionJsonSchema to autoload
James D. Forrester [Mon, 18 Jul 2016 22:20:40 +0000 (15:20 -0700)]
Follow-up 83ec590: Add new updateExtensionJsonSchema to autoload

Change-Id: Ibf61cf36c094ac192b6a7f9aa010659a12e5c5bb

7 years agoMerge "Update BatchRowIterator constructor to allow multiple tables"
jenkins-bot [Mon, 18 Jul 2016 22:06:14 +0000 (22:06 +0000)]
Merge "Update BatchRowIterator constructor to allow multiple tables"

7 years agoMinor bug fixes to Balancer.
C. Scott Ananian [Mon, 18 Jul 2016 20:54:24 +0000 (16:54 -0400)]
Minor bug fixes to Balancer.

This is a follow-up to the refactor done in
5726c9ceb0644af360d37b86351b97ddfcbee20c which prevents a crash when
the first entry in the stack happens to be a BalanceMarker (and thus
doesn't have a `$localName` property).  It also fixes an unrelated
issue where unpaired close-heading tags (like `</h3>`) get entity-escaped
instead of ignored.

Test cases exposing these bugs are added in
Ie854cf99f7e72bcca1bb8565ace558a43dcb6379.

Change-Id: Ia9a1d435be1be10512071f5ff626b68742863483

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 18 Jul 2016 19:56:33 +0000 (21:56 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I6b6287ba53766b12e315d78594b5b54d24d19875

7 years agoMerge "Remove old Esperanto character conversion support"
jenkins-bot [Mon, 18 Jul 2016 19:52:30 +0000 (19:52 +0000)]
Merge "Remove old Esperanto character conversion support"

7 years agoMerge "Improving some function documentation in CategoryViewer.php"
jenkins-bot [Mon, 18 Jul 2016 19:44:17 +0000 (19:44 +0000)]
Merge "Improving some function documentation in CategoryViewer.php"

7 years agoRemove old Esperanto character conversion support
Brion Vibber [Fri, 31 Jan 2014 16:42:05 +0000 (08:42 -0800)]
Remove old Esperanto character conversion support

Deletes LanguageEo.php class which only had remains of the server-side
character conversion (sx <-> ŝ, etc). This is being obsoleted in favor
of client-side IMEs provided by UniversalLanguageSelector extension.

Removes deprecated $wgEditEncoding, which was only used for this.

Turns Language::recodeInput() and Language::recordForEdit() into no-ops
for any old or extension code that happened to still use them.

Bug: T62677
Change-Id: Ib647353538d258dee941f2f7c571191060bc9c7d

7 years agoOutputPage: Remove 'mJQueryDone' property
Timo Tijhof [Mon, 18 Jul 2016 18:28:48 +0000 (19:28 +0100)]
OutputPage: Remove 'mJQueryDone' property

Left by c27b36277b, unused since 32377424b9.

Change-Id: I475cd40fa83b81b817380e981af0cbdd2e359fd0

7 years agoUpdate BatchRowIterator constructor to allow multiple tables
Erik Bernhardson [Mon, 18 Jul 2016 17:26:03 +0000 (10:26 -0700)]
Update BatchRowIterator constructor to allow multiple tables

This already supported multiple tables, but the annotations claimed it
didn't. This $table value gets passed on directly to IDatabase::select
which takes a string or array, so mark it as such here as well.

Change-Id: I28fa61429544e592f90c0855ea59279af897283f

7 years agoOnly store currently-existing categories in the categories table
Brad Jorsch [Wed, 13 Jul 2016 15:30:37 +0000 (11:30 -0400)]
Only store currently-existing categories in the categories table

A "currently-existing category" is defined as a category that either
contains any pages or has a description page. Thus:
* Category::initialize() now schedules an update to insert a row if the
  title exits but the row is missing.
* Category::refreshCounts() now removes the row if the title doesn't
  exist and the category is empty.
* WikiPage::onArticleCreate() loads the Category object, to trigger
  bullet #1.
* WikiPage::updateCategoryCounts() refreshes the counts if it results in
  the row showing 0 pages, to trigger bullet #2.
* LinksDeletionUpdate refreshes the counts if the row shows 0 pages, to
  trigger bullet #2.

A maintenance script is provided to update the category table for this
new definition.

Bug: T28411
Bug: T50824
Change-Id: I0f0adf124c181ae5d3c7c95b3b5fb275a725794c

7 years agoContribsPager: Disallow looking too far in the past for 'newbies' queries
Bartosz Dziewoński [Mon, 18 Jul 2016 16:43:37 +0000 (18:43 +0200)]
ContribsPager: Disallow looking too far in the past for 'newbies' queries

If the user requested a timestamp offset far in the past such that
there are no edits by users with user_ids in the range, we would end
up scanning all revisions from that offset until start of time.

This might end up generating funny queries with redundant conditions
on rev_timestamp, but that should not be a problem, and trying to
tweak paging logic would probably be more difficult than this.

Bug: T140537
Change-Id: I2ac9abee09529620588923bbafbcac07ebe466b2

7 years agoSkinTemplate: Set link classes on content_navigation tabs
Kunal Mehta [Tue, 31 May 2016 23:46:00 +0000 (16:46 -0700)]
SkinTemplate: Set link classes on content_navigation tabs

Set link classes like 'mw-redirect' and 'stub' on the content_navigation
tabs.

Bug: T24976
Change-Id: I10b9b3f95a340ac028a53ea27ec857c12f8bef19

7 years agoMerge "Move Linker::getLinkColour() into LinkRenderer"
jenkins-bot [Mon, 18 Jul 2016 16:16:07 +0000 (16:16 +0000)]
Merge "Move Linker::getLinkColour() into LinkRenderer"

7 years agoMerge "Rename filenames with spaces"
jenkins-bot [Mon, 18 Jul 2016 15:08:21 +0000 (15:08 +0000)]
Merge "Rename filenames with spaces"

7 years agoCorrect spelling of Special namespace in Pashto
Purodha [Sat, 5 Dec 2015 17:38:08 +0000 (17:38 +0000)]
Correct spelling of Special namespace in Pashto

The Pasho namespace name was spelt 'ځانګړی ' but 'ځانگړی ' is correct.
(one character is different)
The misspelling is kept as an alias for the time being as a safety
measure so as to not break anything.

Bug: T119796
Bug: T134581
Bug: T100951
Change-Id: I79f38063f22d46541c423fc415144f3ba7b4d61e

7 years agoRename filenames with spaces
Fomafix [Mon, 18 Jul 2016 05:33:12 +0000 (05:33 +0000)]
Rename filenames with spaces

Change-Id: I94dd6f9ae9cf855d058955b30bde866e70c94901

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 17 Jul 2016 20:03:10 +0000 (22:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1ef79558110f52fe4e33a378e4bedd1f7d0966e5

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 16 Jul 2016 20:04:15 +0000 (22:04 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I22ac1b8641454231b4b145027de68876bfdb7403

7 years agoMerge "Chinese Conversion Table Update 2016-5"
jenkins-bot [Sat, 16 Jul 2016 06:45:52 +0000 (06:45 +0000)]
Merge "Chinese Conversion Table Update 2016-5"

7 years agoChinese Conversion Table Update 2016-5
Chiefwei [Sun, 10 Jul 2016 12:40:28 +0000 (20:40 +0800)]
Chinese Conversion Table Update 2016-5

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: I63054fc4a6cdc6e0fc350a6509ca1154f9464f42

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 15 Jul 2016 19:54:16 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I59ddd452a76279db71a1d6dbf067a8cd23791834

7 years agoregistration: Add test to check extension.json globals are documented
Kunal Mehta [Fri, 10 Jun 2016 20:11:01 +0000 (13:11 -0700)]
registration: Add test to check extension.json globals are documented

Verify that all the global settings listed in
ExtensionProcessor::$globalSettings are documented in the extension.json
schema.

Change-Id: If0ed09ed19b92934e869bbd40d8716a83e4b0a30

7 years agoMerge "Make LocalFile::lock() initialize DBO_TRX transactions"
jenkins-bot [Fri, 15 Jul 2016 13:58:50 +0000 (13:58 +0000)]
Merge "Make LocalFile::lock() initialize DBO_TRX transactions"

7 years agoMerge "Make pre-commit DB callbacks more atomic with multi-DB updates"
jenkins-bot [Fri, 15 Jul 2016 13:58:45 +0000 (13:58 +0000)]
Merge "Make pre-commit DB callbacks more atomic with multi-DB updates"

7 years agoImproving some function documentation in CategoryViewer.php
Kaldari [Fri, 15 Jul 2016 05:05:02 +0000 (22:05 -0700)]
Improving some function documentation in CategoryViewer.php

Change-Id: Ic4ad35d95aa157db627ef9b213007691f465c260

7 years agoUse proper SELECT options in User::idFromName() for locking
Aaron Schulz [Thu, 14 Jul 2016 03:45:20 +0000 (20:45 -0700)]
Use proper SELECT options in User::idFromName() for locking

Change-Id: Ia3ec245ecf5bb2fe7996828696b09f12a8ce10e1

7 years agoMerge "Upgrade error logging when implicit transactions are committed early"
jenkins-bot [Fri, 15 Jul 2016 00:01:38 +0000 (00:01 +0000)]
Merge "Upgrade error logging when implicit transactions are committed early"

7 years agoMake LocalFile::lock() initialize DBO_TRX transactions
Aaron Schulz [Thu, 14 Jul 2016 21:51:25 +0000 (14:51 -0700)]
Make LocalFile::lock() initialize DBO_TRX transactions

If the first query to the master DB is after lock() and DBO_TRX is
set, make sure that the LocalFile updates still join the implicit
transaction that the rest of the request is in.

This helps keep the commit step tight when multiple DBs are touched
by making sure that the main DB commits in commitMasterChanges()
along with any others.

Bug: T119736
Change-Id: I6cc29f9201947e4415336528d30cba7f88567b41

7 years agoMake pre-commit DB callbacks more atomic with multi-DB updates
Aaron Schulz [Thu, 14 Jul 2016 23:29:21 +0000 (16:29 -0700)]
Make pre-commit DB callbacks more atomic with multi-DB updates

Bug: T119736
Change-Id: I141903145aae0f6874f4e631624e52b6b9d8a4c8

7 years agoMerge "resourceloader: Update expected length of module version hash"
jenkins-bot [Thu, 14 Jul 2016 21:57:33 +0000 (21:57 +0000)]
Merge "resourceloader: Update expected length of module version hash"

7 years agoresourceloader: Update expected length of module version hash
Ori Livneh [Wed, 13 Jul 2016 22:43:08 +0000 (15:43 -0700)]
resourceloader: Update expected length of module version hash

It's 7, not 8, as of I1e4fb08d179.

Change-Id: I882bf7075292ff849f2bc3af61217f7e38a4ec5f

7 years agoMerge "Hide marked empty elements by default (stage 1)"
jenkins-bot [Thu, 14 Jul 2016 21:38:56 +0000 (21:38 +0000)]
Merge "Hide marked empty elements by default (stage 1)"

7 years agoHide marked empty elements by default (stage 1)
Tim Starling [Wed, 13 Jul 2016 02:01:59 +0000 (12:01 +1000)]
Hide marked empty elements by default (stage 1)

We originally imagined rolling out the display of empty elements
simultaneously with the Html5Depurate, but now we have added support for
marking empty elements to Html5Depurate and plan on having some sort of
longer migration period. So, move the relevant CSS to content.css, and
remove the concept of CSS dependant on tidy driver.

Add a body class which will allow the effect to be toggled in a gadget or
extension. Actual toggling in the CSS will be in the stage 2 patch, to be
deployed after the varnish cache and parser cache have expired.

I originally imagined that there would be a gadget that overrides the
rule with an !important selector, but that method does not allow you to
recover the original display property, which is often overridden by the
style attribute or site CSS to be "inline".

Also, in RaggettWrapper, switch to the new class mw-empty-elt, following
Html5Depurate, instead of mw-empty-li. The old class will be removed in
the stage 2 patch.

Change-Id: Ic0f432c43a006629ca5a1a7c2dda3552ceb4dc4f

7 years agoMerge "AuthManager: Break AuthPlugin::addUser more explicitly"
jenkins-bot [Thu, 14 Jul 2016 21:08:53 +0000 (21:08 +0000)]
Merge "AuthManager: Break AuthPlugin::addUser more explicitly"

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 14 Jul 2016 20:04:31 +0000 (22:04 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib93bbea5f21ed351de36fdf88f864d6f0a678da0

7 years agoMerge "resourceloader: Track state of page-style modules"
jenkins-bot [Thu, 14 Jul 2016 19:50:33 +0000 (19:50 +0000)]
Merge "resourceloader: Track state of page-style modules"

7 years agoresourceloader: Track state of page-style modules
Timo Tijhof [Tue, 10 May 2016 19:00:44 +0000 (20:00 +0100)]
resourceloader: Track state of page-style modules

This allows dynamically loaded modules to depend on page-style modules
without it causing the page-style module to be loaded a second time.

* New method Module::getType() indicates whether a module is
  a page-style module or supposed to be dynamically loaded.

* Emit warning from addModuleStyles() when given a module that is
  not a page-style module (to be enforced later)

Bug: T92459
Bug: T87871
Change-Id: I8b6c6a10d965e73965f877c42e995d04202524f3

7 years agoRevert "mediawiki.toolbar: temporary workaround for T113868"
Bartosz Dziewoński [Thu, 14 Jul 2016 18:59:44 +0000 (18:59 +0000)]
Revert "mediawiki.toolbar: temporary workaround for T113868"

No longer needed after 280d29215a89ecc68cf860a25f28f7091707a107.

This reverts commit 08cb9076d4903578591c61fff93905d9bddd7237.

Bug: T113868
Change-Id: I480f70fdc223db9c8083e7ee5b5be8d91a8c60c0

7 years agoMerge "DumpStringOutput: Rename getOutput() to __toString()"
jenkins-bot [Thu, 14 Jul 2016 16:26:20 +0000 (16:26 +0000)]
Merge "DumpStringOutput: Rename getOutput() to __toString()"

7 years agoMerge "registration: Convert "config" into an object with metadata"
jenkins-bot [Thu, 14 Jul 2016 13:12:27 +0000 (13:12 +0000)]
Merge "registration: Convert "config" into an object with metadata"

7 years agoDumpStringOutput: Rename getOutput() to __toString()
Kevin Israel [Thu, 14 Jul 2016 10:28:16 +0000 (06:28 -0400)]
DumpStringOutput: Rename getOutput() to __toString()

Though getOutput() is what first came to mind, I do not particularly
like the name, partly because it is used in many, many places as a
method that returns an OutputPage object.

* Renamed the method to __toString(). This is appropriate because
  each instance, at any given time, corresponds to a single string
  value (and exceptions cannot occur during this conversion).
* Removed unnecessary variables from ApiQuery and ExportTest. In
  these and most other cases, it should no longer be necessary to
  call getOutput() explicitly.

Change-Id: Icf202743d1f332f8981338f42eb6e3e5a04abdf1

7 years agoAdd Shan (shn)
Niklas Laxström [Thu, 14 Jul 2016 07:37:32 +0000 (09:37 +0200)]
Add Shan (shn)

Bug: T135867
Change-Id: I6cd17284b82f6cab0b1fe12557005f0ac541f1e9

7 years agoSpecialLog: Add help link
Kunal Mehta [Wed, 13 Jul 2016 23:54:38 +0000 (16:54 -0700)]
SpecialLog: Add help link

Bug: T140013
Change-Id: Ief7b596e9972911106a55a4d2353a63a1ca0a436

7 years agoregistration: Convert "config" into an object with metadata
Kunal Mehta [Wed, 22 Jun 2016 22:33:35 +0000 (00:33 +0200)]
registration: Convert "config" into an object with metadata

To add extra metadata for "config" options without constantly adding
hacky underscore prefixed keys, convert "config" items into an object,
where the value is under a "value" key.

"_merge_strategy" is now just "merge_strategy", but still has the
underscore prefix for the cache structure, to avoid changing it.

Since this is a fully breaking change, it only applies to files with
manifest_version: 2 set. A conversion script has been added to assist
with automated conversion.

Bug: T133626
Change-Id: Id1071fc0647892438e5cd0e3ee621fbdaaa64014

7 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 13 Jul 2016 20:02:32 +0000 (22:02 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I9aa72a1de8d331e8f2b2b832a50effc8c97a8763

7 years agoMerge "mw.widgets.CategorySelector: Avoid JS exceptions for invalid user input"
jenkins-bot [Wed, 13 Jul 2016 12:14:17 +0000 (12:14 +0000)]
Merge "mw.widgets.CategorySelector: Avoid JS exceptions for invalid user input"

7 years agoMerge "API: Remove index forcing in ApiQueryRecentChanges"
jenkins-bot [Wed, 13 Jul 2016 09:28:11 +0000 (09:28 +0000)]
Merge "API: Remove index forcing in ApiQueryRecentChanges"

7 years agoMerge "Don't use $wgContentNamespaces directly"
jenkins-bot [Tue, 12 Jul 2016 23:26:38 +0000 (23:26 +0000)]
Merge "Don't use $wgContentNamespaces directly"

7 years agoDon't use $wgContentNamespaces directly
Kunal Mehta [Fri, 27 May 2016 17:21:27 +0000 (10:21 -0700)]
Don't use $wgContentNamespaces directly

Change-Id: If8ed1bf7e7c6429c405c956413af07a191ec9c40

7 years agoMWExceptionHandler: Fix PHP7 compatibility
Kunal Mehta [Tue, 12 Jul 2016 22:10:25 +0000 (15:10 -0700)]
MWExceptionHandler: Fix PHP7 compatibility

The `Exception` type-hint will cause issues if a PHP7 `Error` is thrown.

Change-Id: Iab0af90235badd57304131ae2274a1cfa0be822a