Commit graph

76671 commits

Author SHA1 Message Date
Kevin Israel
e2ac8a7306 WebStart.php: Update the file's doc comment
The doc comment did not reflect the removal of MW_NO_SETUP in
edc9edbc76, or the fact that Setup.php no longer loads
AutoLoader.php or GlobalFunctions.php.

Change-Id: I19a12fd83e369828b9e08176ddf3bfca16aae465
2017-05-26 14:25:04 +00:00
jenkins-bot
f0e12ae951 Merge "jquery.makeCollapsible: Restore considering empty <a> as part of toggle" 2017-05-25 21:37:15 +00:00
jenkins-bot
62a1d961bb Merge "Add missing ampersand to getMultiWithSetCallback() callback" 2017-05-25 21:25:01 +00:00
Timo Tijhof
15b88fc280 jquery.makeCollapsible: Restore considering empty <a> as part of toggle
Before 2d95d36a8e, clicks on links inside toggles with non-empty
targets that are not '#', were ignored ("pass through") since they
are not intended for the toggle.

In 2d95d36a8e, this was simplified to ignoring clicks from all <a>
elements inside toggles. However this ignored too much as links
without 'href' attribute are also sometimes used inside toggles
to look like links and have no href-target, which means clicking
them does nothing and is in fact meant to toggle the element.

Restore previous behaviour and restore previous test + add a new
test for this specific case.

Bug: T166298
Change-Id: Ia3a0648f809f94be0977a83b469fbd184aa72aff
2017-05-25 21:23:17 +00:00
jenkins-bot
3548e73f89 Merge "Revert "Creating new WMF 1.30.0-wmf.2 branch"" 2017-05-25 21:14:56 +00:00
jenkins-bot
81d2745d32 Merge "Add kbp language code" 2017-05-25 21:04:36 +00:00
Timo Tijhof
eaf2957ba7 Revert "Creating new WMF 1.30.0-wmf.2 branch"
Also revert the automatic "Update git submodules" commits since then.

This reverts commit 264fc98588.

Change-Id: Ica6ad77c46cc8a7f6b5576da2580ea9e07ac8637
2017-05-25 22:57:06 +02:00
jenkins-bot
0506b18121 Merge "Fix version of DonationInterface deployed to donatewiki" 2017-05-25 20:44:53 +00:00
Elliott Eggleston
d7dae4519e Fix version of DonationInterface deployed to donatewiki
We had deleted some localization strings that donatewiki needs.

Bug: T166302
Change-Id: I27a03a64de80bdf58f7d7f2f69173933aa4b23ea
2017-05-25 13:15:32 -07:00
Translation updater bot
04accdab9a Localisation updates from https://translatewiki.net.
Change-Id: I0772f5f25bb805291ffee1b8170d22a49c3aa317
2017-05-25 22:00:24 +02:00
jenkins-bot
8692987fca Merge "MessageCache: Avoid deprecated wfMemcKey()" 2017-05-25 19:46:45 +00:00
jenkins-bot
188c896640 Merge "rebuildrecentchanges.php: Make purgeFeeds() use the correct cache" 2017-05-25 19:42:12 +00:00
mdew192837
09a5d5edd8 rebuildrecentchanges.php: Make purgeFeeds() use the correct cache
ChangesFeed was updated in 3517be1cf0, to use the WAN cache,
so this change updates the purgeFeeds() function to use that cache
too.

Avoid the deprected wfMemcKey() too.

Bug: T166195
Change-Id: I28a8d729737f03ccaf069495a59e80401c59e778
2017-05-25 12:29:34 -07:00
jenkins-bot
faa44cac97 Merge "ApiParse: Use existing OutputPage for prop=categorieshtml" 2017-05-25 17:49:22 +00:00
jenkins-bot
b77e101acb Merge "Move some more classes to comply with class per file" 2017-05-25 16:15:31 +00:00
Brad Jorsch
5ad73b8aab ApiParse: Use existing OutputPage for prop=categorieshtml
Follows up Iaa85ac49.

This also ensures that the Skin correctly refers back to the constructed
OutputPage even when 'useskin' isn't specified.

Change-Id: I983e907c05acd753733e88904953f355e26f393d
2017-05-25 11:29:04 -04:00
Sébastien Santoro
03e306dd3b Add kbp language code
Bug: T160915
Change-Id: I1de0c2eb0228697544f2e3bfedf76bc37ac3f679
2017-05-25 17:27:50 +02:00
Aaron Schulz
cbff84a5b9 Add missing ampersand to getMultiWithSetCallback() callback
Also fixed a php example block comment

Change-Id: Ib6967180ad0d45aec7b7d4b6d383723e2c95fefa
2017-05-25 03:40:26 -07:00
jenkins-bot
bdd46f7cfa Merge "mediawiki.page.watch: Deprecate mw.page object" 2017-05-25 07:48:59 +00:00
jenkins-bot
6a22d3d1cb Merge "Avoid treating mcrouter set()s as failing due to AllAsyncRoute" 2017-05-24 22:35:48 +00:00
jenkins-bot
c1f430f17b Merge "Revert "Revert "Fix the web updater""" 2017-05-24 22:31:42 +00:00
Timo Tijhof
687dfcd17d Update git submodules
* Update extensions/wikihiero from branch 'wmf/1.30.0-wmf.2'
  - Fix styles queue violation for "ext.wikihiero.Special"
    
    The same module is explicitly being loaded twice, once just the
    styles, and again with the JS/messages/dependencies as well.
    
    This is wasteful and also unsupported.
    
    Move the two style rules to the main stylesheet and load the
    proper styles module it belongs to instead.
    
    Bug: T92459
    Change-Id: I012b4d9bff5bd0379f8b9eb663d5b5dbf71f1885
2017-05-24 22:23:06 +00:00
Paladox
a0a471568f Revert "Revert "Fix the web updater""
This reverts commit a7b9cc4946.

Change-Id: I91d4b821df126703f83377dd8aff3a79b629f720
2017-05-24 22:20:55 +00:00
jenkins-bot
e94c89e7e3 Merge "Revert "Fix the web updater"" 2017-05-24 21:56:37 +00:00
Paladox
a7b9cc4946 Revert "Fix the web updater"
May be causing beta to break, if that's true then we are going to revert 6519c42d24

This reverts commit 5d56bcb925.

Change-Id: I5e9df08dc1583266bb11b52d5d68bf393e4c0fff
2017-05-24 21:43:30 +00:00
Chad Horohoe
6b1362131f Update git submodules
* Update extensions/ProofreadPage from branch 'wmf/1.30.0-wmf.2'
  - Properly handle batches of pages to update
    
    Using LIMIT on UPDATE/DELETE queries is unsafe when using statement-based
    replication as you can't ensure the same sets of rows are updated.
    
    Instead, select a batch of problematic page_ids, update by them, then
    continue until we don't find any more to fix
    
    Bug: T166261
    Change-Id: I8a5d2989285c72450d6a48ccc12d88fdeeb3fb6f
2017-05-24 21:08:15 +00:00
Translation updater bot
1fba226842 Localisation updates from https://translatewiki.net.
Change-Id: I2e981505c8fd591998178998508e923f9e9fbb41
2017-05-24 22:16:19 +02:00
mdew192837
299255c648 MessageCache: Avoid deprecated wfMemcKey()
Change-Id: I31e3cde0a94e355de9f32a17636aaf54aa2d40c4
2017-05-24 14:15:29 -05:00
jenkins-bot
30b848c4df Merge "Batch/pipeline backend operations in refreshFileHeaders" into wmf/1.30.0-wmf.2 2017-05-24 18:36:08 +00:00
Gilles Dubuc
9567432a94 Update git submodules
* Update extensions/TimedMediaHandler from branch 'wmf/1.30.0-wmf.2'
  - Make getContentHeaders rely on fallback width/height
    
    Bug: T150741
    Change-Id: I89cc083aac39f71460b10bfc0ce341c115bd6b64
    Depends-On: I2c0f39b2b01f364c3fab997ccc2f874b7f101d8a
2017-05-24 18:36:06 +00:00
Gilles Dubuc
86c4feacdd Update git submodules
* Update extensions/PagedTiffHandler from branch 'wmf/1.30.0-wmf.2'
  - Update getContentHeaders signature
    
    Bug: T150741
    Change-Id: I714bd9a340c64e5b8536c031923ad0b486434632
    Depends-On: I2c0f39b2b01f364c3fab997ccc2f874b7f101d8a
2017-05-24 18:36:04 +00:00
jenkins-bot
abca5fc91f Merge "Use file width/height instead of metadata for getContentHeaders" into wmf/1.30.0-wmf.2 2017-05-24 18:36:02 +00:00
Gilles Dubuc
bcc2c17621 Update git submodules
* Update extensions/PdfHandler from branch 'wmf/1.30.0-wmf.2'
  - Update getContentHeaders signature
    
    Bug: T150741
    Change-Id: I3a62185243d5a0d561da63a5e5ccafed093d41bb
2017-05-24 18:16:12 +00:00
Aaron Schulz
1180a859ba Avoid treating mcrouter set()s as failing due to AllAsyncRoute
Per https://github.com/facebook/mcrouter/wiki/List-of-Route-Handles
a NullRoute response is always given for DELETE and SET. The former
already is already handled by MediaWiki treating NOT_FOUND as success.

Change-Id: I79c26bcd6b8ffe7eea73e0d45badcc4ed63f05e6
2017-05-24 10:50:09 -07:00
jenkins-bot
4b93713641 Merge "Fix up deprecation of wfMemcKey()/wfGlobalCacheKey()" 2017-05-24 16:23:47 +00:00
jenkins-bot
d36957e952 Merge "rdbms: Add compat alias for renamed LBFactory class" 2017-05-24 15:53:36 +00:00
Fomafix
7da28ab3ce Restore dependency on module 'mediawiki.page.startup'
Module 'mediawiki.page.watch.ajax' requires a dependency to module
'mediawiki.page.startup' because 'mediawiki.page.startup' creates the object
mw.page and 'mediawiki.page.watch.ajax' requires this object.

This dependency got lost in 06a0dec057.

Bug: T114288
Change-Id: Iebfda85c77eaf6bb19d2ae755813b1c36a95dac8
(cherry picked from commit ef456a7805)
2017-05-24 15:20:20 +00:00
jenkins-bot
3760c512a1 Merge "installer: Replace bad calls to getText() on DBQueryError exceptions" 2017-05-24 11:34:20 +00:00
Timo Tijhof
99c1f00377 rdbms: Add compat alias for renamed LBFactory class
This was renamed to be namespaced, but there are still some uses
that justify having an alias, similar to how we did with most
other classes in rdbms that were renamed in 1.29.

Bug: T164896
Change-Id: I36426144491b976322c3c96c08a821300d3b4a46
2017-05-24 11:29:54 +00:00
mainframe98
a3d2a265c9 installer: Replace bad calls to getText() on DBQueryError exceptions
The called method does not exist. Replaced with getMessage(),
similar to PostgresInstaller.php.

Bug: T165319
Change-Id: I900ec8c18307ce6f9e8c9f4cda79b1e33ed66dff
2017-05-24 11:25:02 +00:00
jenkins-bot
7ceae501f6 Merge "Update psysh to 0.8.5" 2017-05-24 10:04:19 +00:00
Gilles Dubuc
e20e1c80d3 Batch/pipeline backend operations in refreshFileHeaders
Bug: T150741
Change-Id: I44efd47e7eb3eba71ae39808ee8e6969e141c5cc
2017-05-24 10:46:50 +02:00
Gilles Dubuc
14faf59fd9 Use file width/height instead of metadata for getContentHeaders
This allows us to populate X-Content-Dimensions without touching the
existing metadata format. Which makes the migration of existing content a lot faster by
only having to run refreshFileHeaders.

Bug: T150741
Change-Id: I2c0f39b2b01f364c3fab997ccc2f874b7f101d8a
2017-05-24 10:46:39 +02:00
jenkins-bot
171255101f Merge "Use file width/height instead of metadata for getContentHeaders" 2017-05-24 06:44:54 +00:00
Kunal Mehta
7e48fdd76f session: Avoid deprecated wfMemcKey()
Change-Id: I4d77c2c52ef43cbc54878ce920595befd270a28e
2017-05-23 22:25:27 -07:00
Kunal Mehta
2e553e1967 ChangeTags: Avoid deprecated wfMemcKey()
And ObjectCache::getMainWANInstance() while we're at it too.

Change-Id: I2678f5f940ed29654600fec39ff5daee7f59a223
2017-05-23 21:01:09 -07:00
Kunal Mehta
b3a66156d9 skins: Avoid deprecated wfMemcKey()
Change-Id: Id31998b365f486a651341563c0b16a358ce2b31d
2017-05-23 21:01:09 -07:00
Kunal Mehta
e37a7f257a media: Avoid deprecated wfMemcKey()
And ObjectCache::getMainWANInstance() while we're at it.

Change-Id: Ib22bd134c3faa56f8d8f111bb9ed99d826cbed40
2017-05-23 21:01:09 -07:00
Kunal Mehta
d93a15f331 registration: Avoid deprecated wfMemcKey()
Change-Id: I8f4382d55ba2d006f1573e945c83c3fd541a2cb1
2017-05-23 21:01:09 -07:00
Kunal Mehta
3e4f40851a InfoAction: Avoid deprecated wfMemcKey()
And the deprecated ObjectCache::getMainWANInstance() while we're at it.

Change-Id: Id7bb6a8c3e8269345e054d2c2bf202304b74c3cf
2017-05-23 21:01:08 -07:00