Commit graph

86191 commits

Author SHA1 Message Date
jenkins-bot
2f6e23bb38 Merge "Hard deprecate SearchEngine::getNearMatchResultSet()" 2018-12-10 03:20:37 +00:00
jenkins-bot
75c17a4cda Merge "Hard deprecate LinkCache::addLink()" 2018-12-10 03:18:47 +00:00
jenkins-bot
6fabc5dc99 Merge "Hard deprecated SiteSQLStore::newInstance()" 2018-12-10 03:17:30 +00:00
jenkins-bot
df2254dc1c Merge "Revert "Pass $context to 'GetPreferences' hook"" 2018-12-10 03:13:44 +00:00
Krinkle
4b275c60de Revert "Pass $context to 'GetPreferences' hook"
This reverts commit d685694594.

Change-Id: I1e9299b8fdc4727895fdac60f04cc5dfa4d09b7a
2018-12-10 02:58:59 +00:00
jenkins-bot
86bf710e44 Merge "Allow users to block the user that blocked them." 2018-12-09 23:47:25 +00:00
Brian Wolff
6585277528 Allow users to block the user that blocked them.
This is to make it so that blocking all other admins is not
a succesful attack plan, as the blocked admins can block the
blocker, and then it ends in a stalemate with everyone blocked.

This also allows users with unblock-self right to adjust their
own blocks. The code already existed for this but was broken.

Credit for this idea goes to Tgr.

Bug: T150826
Change-Id: I0418279fdb2a59f8f1d7eeb8931d874123d03e4f
2018-12-09 15:24:57 -08:00
Translation updater bot
496f59fe1a Localisation updates from https://translatewiki.net.
Change-Id: Icf65b2765d118c65b13d9b6b033cd380146262fb
2018-12-09 21:55:00 +01:00
Fomafix
1ecacc2e21 Remove useless continue at end of loop
A loop always continues at the end of the loop.

Change-Id: I6be79afa6ea67247d37ab3dc3c552183a81d6706
2018-12-09 10:27:32 +00:00
Max Semenik
1da14005d9 Hard deprecate SearchEngine::getNearMatchResultSet()
Deprecated in 1.27, no callers.

Change-Id: I6084a114fe8d0b4681e2e4b55eada06b684c719c
2018-12-08 22:23:24 -08:00
Max Semenik
ca41a48ffe Hard deprecate LinkCache::addLink()
Deprecated in 1.27, no callers.

Change-Id: Ide39566b6741d2b844ddd5c8e62dd0fc0382670a
2018-12-08 22:23:08 -08:00
Max Semenik
fa432176d1 Hard deprecated SiteSQLStore::newInstance()
Deprecated in 1.27, no callers.

Change-Id: Ia262790cc6804b29fee656d0f53be1374bf04c2f
2018-12-08 22:12:33 -08:00
jenkins-bot
46130ec4e3 Merge "resourceloader: Add getConfig() method to ResourceLoaderContext" 2018-12-09 02:01:18 +00:00
Roan Kattouw
7e148dfbf0 resourceloader: Add getConfig() method to ResourceLoaderContext
Change-Id: I38ece7320adab64113c5d2a91056d5522f369367
2018-12-09 01:46:38 +00:00
jenkins-bot
bd78869618 Merge "No yoda conditions" 2018-12-09 01:34:23 +00:00
jenkins-bot
2ca16a7bd3 Merge "Add browser test for preview functionality to MediaWiki core" 2018-12-09 00:53:23 +00:00
jenkins-bot
acd7881d5f Merge "SpecialUnusedimages: Change message when CountCategorizedImagesAsUsed" 2018-12-08 21:32:17 +00:00
jenkins-bot
18e38cd16b Merge "Skin: Remove default loading of module 'mediawiki.user'" 2018-12-08 20:23:33 +00:00
Fomafix
96e33ea5eb Skin: Remove default loading of module 'mediawiki.user'
The default loading of module 'mediawiki.user' was added in 7d4108ecdb
(r88254).

At this time mw.user.options was defined in module 'mediawiki.user'.
Now mw.user.options is already defined in module 'startup'.

Change-Id: I772cf93317f64a7d1723b01cb92f7db7be91cf89
2018-12-08 20:07:50 +00:00
jenkins-bot
df21b199a8 Merge "Pass title to Revision constructor in ContribsPager " 2018-12-08 17:32:23 +00:00
Alangi Derick
19adaa6a4b parser: Fix PHPDoc annotations in parser module
Change-Id: I09680d72516f943051e86655b5fddf9ff2988e4e
2018-12-08 13:07:10 +00:00
Rafid Aslam
0a2c57efe5 SpecialUnusedimages: Change message when CountCategorizedImagesAsUsed
Change the header message of SpecialUnusedimages to explain
that categorized images are considered as used when
$wgCountCategorizedImagesAsUsed is turned on.

Bug: T210923
Change-Id: Ifefdaaf6e80ee50ce64459c708f651bd871d746e
2018-12-08 10:40:26 +07:00
jenkins-bot
3be252f8cb Merge "User: Bypass repeatable-read when creating an actor_id" 2018-12-07 23:37:09 +00:00
jenkins-bot
6103fd349d Merge "Remove User::EDIT_TOKEN_SUFFIX, a deprecated constant since 1.27." 2018-12-07 23:14:53 +00:00
Matthewrbowker
4da89d7d74 Remove User::EDIT_TOKEN_SUFFIX, a deprecated constant since 1.27.
Bug: T61113
Change-Id: I4a461003c881b457283dc6118153e24380fccc88
2018-12-07 22:59:20 +00:00
jenkins-bot
c90f3220a3 Merge "monolog: add CeeFormatter" 2018-12-07 21:24:17 +00:00
Translation updater bot
9e1cd96db1 Localisation updates from https://translatewiki.net.
Change-Id: I848ec9003a94a5bc3eba15274f8c5ea8ea4812ad
2018-12-07 22:00:28 +01:00
jenkins-bot
dfc7af9dc2 Merge "Login-related messages should get the URL as a parameter" 2018-12-07 20:09:06 +00:00
Alangi Derick
feb9456bbc jobqueue: Add PHPDoc param annotation for __construct() method
Document $parserCache, $title and $params for the constructor method
and minor typo fix newSpec() method.

Change-Id: I5968ee5bfe614da6f6dc8d7e0405799aa00b6127
2018-12-07 18:56:36 +00:00
Umherirrender
b16e6343a0 Pass title to Revision constructor in ContribsPager
The information for a title already in the select result.
Give it to Revision class to avoid extra Title::newFromId in
Revision::ensureTitle for each row

Change-Id: Ib8dd78f918bd0f3fe131f2a8ed9e659f87edd4a1
2018-12-07 18:49:27 +00:00
jenkins-bot
41f33bee37 Merge "Add dependencies on module 'user.options'" 2018-12-07 18:22:13 +00:00
Thiemo Kreuz
3b03ea9bdc Add browser test for preview functionality to MediaWiki core
The basic functionality of being able to preview an edit is currently
not covered by a test, as far as I can see.

The assertion for a wpTextbox2 that should *not* be there is a result of
the issue documented at T209012, where the EditPage::isConflict flag was
accidentially set. This assertion makes sure accidential conflicts can't
happen again, no matter which extension might cause it.

Bug: T210758
Change-Id: Iae723430b3a88079ad3499429e65c29817eca67e
2018-12-07 16:27:45 +01:00
jenkins-bot
3851367738 Merge "textSelection: Use execcommand to replace text" 2018-12-07 15:27:25 +00:00
Filippo Giunchedi
667b17a319 monolog: add CeeFormatter
This formatter extends LogstashFormatter to prefix records with "cee token"
used for syslog and JSON structured logging. See also related task for more
context.

Bug: T211124
Change-Id: I3cdeb4c666f54039b5e8ecc67bd4937220333526
2018-12-07 09:04:54 +01:00
Gergő Tisza
f6aae4d126 Login-related messages should get the URL as a parameter
System messages along the lines of "you can't view this page,
please log in" get the login link (with returnto parameters) as a
HTML string, but sometimes one might want to customize the link
on one page without affecting all the other pages so it's nice
to have the raw link available as well.

Change-Id: Ib71791ea28718455d2925e4424147e87ef901f33
2018-12-07 02:38:16 +00:00
Translation updater bot
49278b9b89 Localisation updates from https://translatewiki.net.
Change-Id: Id77c8c55421c2ed60e00bca678cf61d0c9f7f485
2018-12-06 22:02:15 +01:00
Fomafix
89dd1f7c93 Add dependencies on module 'user.options'
This change adds missing dependencies on the module 'user.options'
where the user options get requested via mw.user.options.

Change-Id: I63faaba4b286837cc4e3656d14ea1b255bbf32a6
2018-12-06 20:54:12 +01:00
jenkins-bot
db19ae7b99 Merge "Skin: Assign module 'mediawiki.searchSuggest' already on initialization" 2018-12-06 19:29:20 +00:00
jenkins-bot
41fa0b12e7 Merge "ApiComparePages: Don't try to find next/prev of a deleted revision" 2018-12-06 18:19:39 +00:00
Fomafix
585c504f0b Skin: Assign module 'mediawiki.searchSuggest' already on initialization
The module 'mediawiki.searchSuggest' does not depend on anything and
can assigned to $modules already on initialization like the other
modules.

Change-Id: Ibf9bcbd4dde4703d72c9b97b0e88468c63978e0f
2018-12-06 18:01:13 +01:00
jenkins-bot
6228415557 Merge "Add namespace to action=info page" 2018-12-06 00:28:44 +00:00
jenkins-bot
643830035d Merge "Change rules when displaying block log extract" 2018-12-05 23:55:22 +00:00
Dayllan Maza
65bd5b5e65 Change rules when displaying block log extract
Show log extract if the user is sitewide blocked, or is partially
blocked and not allowed to edit their user page or user talk page.

Bug: T203171
Change-Id: I9bcc50cfc1fad23f6bbbe5374a9a866f77bebc11
2018-12-05 22:58:46 +00:00
jenkins-bot
eea791fc4d Merge "TitlesMultiselectWidget: display pending element" 2018-12-05 21:51:03 +00:00
jenkins-bot
747f2a4ca6 Merge "i18n: Provide a value for the 'slot-name-main' fall-back key" 2018-12-05 21:45:12 +00:00
Translation updater bot
85685e0b3e Localisation updates from https://translatewiki.net.
Change-Id: I4471ab7594a64131d33426575400d092ca2396be
2018-12-05 22:15:03 +01:00
Thalia
62b4cee23f TitlesMultiselectWidget: display pending element
Create a PendingTextInputWidget and use it in
TitlesMultiSelectWidget instead of the multiline
text area for users who have JavaScript.

Bug: T210080
Change-Id: I824fea6a3df580d342e6087ab901fec025f0e70b
2018-12-05 21:08:38 +00:00
jenkins-bot
eb6b48d761 Merge "ImageListPager: Actor migration for buildQueryConds()" 2018-12-05 21:01:54 +00:00
jenkins-bot
5417327be0 Merge "Don't silently fail if API result fails to encode" 2018-12-05 20:15:04 +00:00
jenkins-bot
d312953b76 Merge "i18n: Escape the File and Category namespaces in error links to pages" 2018-12-05 19:24:41 +00:00