lhc/web/wiklou.git
5 years agoUse $revQuery['joins'] in query in populateSearchIndex
Paladox [Mon, 19 Nov 2018 21:29:44 +0000 (21:29 +0000)]
Use $revQuery['joins'] in query in populateSearchIndex

Bug: T209885
Change-Id: Iaf53179535030064788eb107c4ebdd398ed306e4

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 19 Nov 2018 20:53:33 +0000 (21:53 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I193d4a6ddba32cfff69161eb5b3e01db502fd13a

5 years agoMerge "Log error when array_flip fails in MessageCache load"
jenkins-bot [Mon, 19 Nov 2018 20:44:43 +0000 (20:44 +0000)]
Merge "Log error when array_flip fails in MessageCache load"

5 years agoMerge "Fix function name in doc comment"
jenkins-bot [Mon, 19 Nov 2018 20:20:45 +0000 (20:20 +0000)]
Merge "Fix function name in doc comment"

5 years agoMerge "Make the context page the edited page in EditPages"
jenkins-bot [Mon, 19 Nov 2018 20:19:14 +0000 (20:19 +0000)]
Merge "Make the context page the edited page in EditPages"

5 years agoCheckMatrixWidget: Remove override of first `tr`
Volker E [Mon, 19 Nov 2018 19:21:40 +0000 (11:21 -0800)]
CheckMatrixWidget: Remove override of first `tr`

Follow-up to I3f707f667df11. Non-selecting the first row was
introduced when no differntiation of `thead` and `tbody` were available.
Now that it's given, it's time to remove this and apply `:hover` style
consistently.

Change-Id: Ief59eb84cfe442c5be166dea254c0aed9d3909cb

5 years agoMerge "Add some additional domains to the CSP false positive list"
jenkins-bot [Mon, 19 Nov 2018 17:55:30 +0000 (17:55 +0000)]
Merge "Add some additional domains to the CSP false positive list"

5 years agoMerge "CheckMatrixWidget: Fix alignment issues"
jenkins-bot [Mon, 19 Nov 2018 16:41:07 +0000 (16:41 +0000)]
Merge "CheckMatrixWidget: Fix alignment issues"

5 years agoMerge "ChangesListSpecialPage: Make maximum limit consistent (1000)"
jenkins-bot [Mon, 19 Nov 2018 11:57:01 +0000 (11:57 +0000)]
Merge "ChangesListSpecialPage: Make maximum limit consistent (1000)"

5 years agoLog error when array_flip fails in MessageCache load
Gilles Dubuc [Mon, 19 Nov 2018 10:49:23 +0000 (11:49 +0100)]
Log error when array_flip fails in MessageCache load

Bug: T208897
Change-Id: If6e7a6a3019abbdc11b6604ec706cc88bfddf128

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 18 Nov 2018 20:57:12 +0000 (21:57 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I9fda3da2cdd835a99304058be3485b4adc62bc4c

5 years agoMerge "Show an red error message for a database upgrade error"
jenkins-bot [Sat, 17 Nov 2018 23:24:30 +0000 (23:24 +0000)]
Merge "Show an red error message for a database upgrade error"

5 years agoMerge "Add generic `font-family` fallback"
jenkins-bot [Sat, 17 Nov 2018 21:38:18 +0000 (21:38 +0000)]
Merge "Add generic `font-family` fallback"

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 17 Nov 2018 21:32:14 +0000 (22:32 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I6ed7b4b9816b4be81cc58c71e918331be2373041

5 years agoSend a 405 on unsupported HTTP methods in API
Shreyas Minocha [Sat, 17 Nov 2018 07:47:16 +0000 (13:17 +0530)]
Send a 405 on unsupported HTTP methods in API

Bug: T209228
Change-Id: I24af3bfea1ff4b37a72ef5e83b12a8f1c59ca497

5 years agoShow an red error message for a database upgrade error
LukBukkit [Sat, 17 Nov 2018 16:45:27 +0000 (17:45 +0100)]
Show an red error message for a database upgrade error

Bug: T209344
Change-Id: I640626e10241ca56d34545d1e99f51872c160242

5 years agoAdd generic `font-family` fallback
Volker E [Sat, 17 Nov 2018 04:36:05 +0000 (20:36 -0800)]
Add generic `font-family` fallback

Change-Id: I65fb9eff81729f7d320d0fa73f88e6c8c5571100

5 years agoMerge "Reuse DerivedPageDataUpdater during null-edits."
jenkins-bot [Sat, 17 Nov 2018 02:03:43 +0000 (02:03 +0000)]
Merge "Reuse DerivedPageDataUpdater during null-edits."

5 years agoMerge "ContribsPager: Don't hardcode brackets in `uctop` information"
jenkins-bot [Sat, 17 Nov 2018 01:39:27 +0000 (01:39 +0000)]
Merge "ContribsPager: Don't hardcode brackets in `uctop` information"

5 years agoContribsPager: Don't hardcode brackets in `uctop` information
jdlrobson [Fri, 16 Nov 2018 02:13:05 +0000 (18:13 -0800)]
ContribsPager: Don't hardcode brackets in `uctop` information

Style this via CSS.

Known: This will result in double brackets for non-translated
skins until fixed.

Bug: T205581
Change-Id: Ifbe820ae7ad9838b6662bc2592d2b277af443e9d

5 years agoMerge "HTMLCheckMatrix/CheckMatrixWidget: Adding `th` to `thead`"
jenkins-bot [Sat, 17 Nov 2018 00:01:36 +0000 (00:01 +0000)]
Merge "HTMLCheckMatrix/CheckMatrixWidget: Adding `th` to `thead`"

5 years agoCheckMatrixWidget: Fix alignment issues
Volker E [Fri, 16 Nov 2018 23:53:52 +0000 (15:53 -0800)]
CheckMatrixWidget: Fix alignment issues

Bug: T205629
Change-Id: I54c49621f8378d613098683fefe72f59fddbf771

5 years agoMerge "Improve display of an SQL error during the installation"
jenkins-bot [Fri, 16 Nov 2018 23:40:24 +0000 (23:40 +0000)]
Merge "Improve display of an SQL error during the installation"

5 years agoHTMLCheckMatrix/CheckMatrixWidget: Adding `th` to `thead`
Volker E [Fri, 16 Nov 2018 23:27:19 +0000 (15:27 -0800)]
HTMLCheckMatrix/CheckMatrixWidget: Adding `th` to `thead`

Improving semantics, which also reflects in screen readers.

Change-Id: I552a61a6e1892ebed86d9434366bd932f6f7a602

5 years agoMerge "CheckMatrixWidget: Re-instate HTMLForm CheckMatrix styling"
jenkins-bot [Fri, 16 Nov 2018 22:58:44 +0000 (22:58 +0000)]
Merge "CheckMatrixWidget: Re-instate HTMLForm CheckMatrix styling"

5 years agoImprove display of an SQL error during the installation
LukBukkit [Fri, 16 Nov 2018 22:54:59 +0000 (23:54 +0100)]
Improve display of an SQL error during the installation

This commit moves the call of the DatabaseUpdater::purgeCache
function into a try catch block which ensures
that the error will be displayed nicely.

Bug: T209341
Change-Id: I614444140e29948c41baa30dd557483b63f21a9a

5 years agoChangesListSpecialPage: Make maximum limit consistent (1000)
Roan Kattouw [Fri, 16 Nov 2018 22:06:02 +0000 (14:06 -0800)]
ChangesListSpecialPage: Make maximum limit consistent (1000)

The maximum value for the rclimit and wllimit preferences is 1000, so
make the maximum value for the ?limit= query parameter also 1000.

Bug: T206233
Change-Id: I244ab2896875391f9676c8127033a0b76568157f

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 16 Nov 2018 21:00:34 +0000 (22:00 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ib37be65f02e08421ea0f55f99d634afadbf2b8fe

5 years agoMerge "RCFilters: Removing unused images"
jenkins-bot [Fri, 16 Nov 2018 20:49:29 +0000 (20:49 +0000)]
Merge "RCFilters: Removing unused images"

5 years agoCheckMatrixWidget: Re-instate HTMLForm CheckMatrix styling
Volker E [Fri, 16 Nov 2018 01:53:59 +0000 (17:53 -0800)]
CheckMatrixWidget: Re-instate HTMLForm CheckMatrix styling

Adding `tbody` with extra class and add additional `thead`.

Bug: T209667
Change-Id: I3f707f667df11e9bfd5ce1fcc51ccde0cd12e9be

5 years agoMerge "Doc: result domain for GlobalFunctions::wfRandom()"
Niedzielski [Fri, 16 Nov 2018 20:19:19 +0000 (20:19 +0000)]
Merge "Doc: result domain for GlobalFunctions::wfRandom()"

5 years agoMerge "Mark jquery.async as deprecated"
jenkins-bot [Fri, 16 Nov 2018 19:38:33 +0000 (19:38 +0000)]
Merge "Mark jquery.async as deprecated"

5 years agoReuse DerivedPageDataUpdater during null-edits.
daniel [Thu, 15 Nov 2018 14:49:23 +0000 (15:49 +0100)]
Reuse DerivedPageDataUpdater during null-edits.

Checking the acting user against the revision's author in
DerivedPageDataUpdater::isReusableFor would lead to false
negatives.

Also removes a check of the current acting user against the
cached revision's author, for the same reason: for null edits,
the acting user and the revision author are unrelated.

Bug: T205369
Change-Id: I48f59dce6c25062b3d6ff4248e1171269766c507

5 years agoMerge "Add a way to exclude categories from Special:UnusedCategories"
jenkins-bot [Fri, 16 Nov 2018 17:28:13 +0000 (17:28 +0000)]
Merge "Add a way to exclude categories from Special:UnusedCategories"

5 years agoMerge "EditPage: Add returntoquery parameter to anoneditwarning links"
jenkins-bot [Fri, 16 Nov 2018 17:28:05 +0000 (17:28 +0000)]
Merge "EditPage: Add returntoquery parameter to anoneditwarning links"

5 years agoAdd a way to exclude categories from Special:UnusedCategories
Agabi10 [Fri, 7 Sep 2018 21:32:26 +0000 (21:32 +0000)]
Add a way to exclude categories from Special:UnusedCategories

Added __EXPECT_UNUSED_CATEGORY__ as a behavioral switch. Adding
this switch to category pages prevents them from appearing in
Special:UnusedCategories.

Bug: T96041
Change-Id: I055e59f5311347155e0f801dd5ec9a6d4a68c9cc

5 years agoMark jquery.async as deprecated
Ed Sanders [Fri, 16 Nov 2018 13:02:27 +0000 (13:02 +0000)]
Mark jquery.async as deprecated

Bug: T209699
Change-Id: Ic7c9fb195271f299048392852aeb39f6f8d9731c

5 years agoFix function name in doc comment
Daimona Eaytoy [Fri, 12 Oct 2018 09:25:04 +0000 (11:25 +0200)]
Fix function name in doc comment

It took me a while to figure out what function what this comment
referring to.

Change-Id: I00d243f3dd30d6b4030b0460453310022183322f

5 years agoMake the context page the edited page in EditPages
daniel [Thu, 15 Nov 2018 14:56:57 +0000 (15:56 +0100)]
Make the context page the edited page in EditPages

This forces the WikiPage returned by $this->getContext()->getPage()
to be the same as $this->page.

This seems to be redundant at the moment, but it seems prudent to
make sure this does not break. Having two WikiPage instances may
cause subtle problems, such as redundant parsing of content during
edits.

Bug: T205369
Change-Id: I8dd3235ec395fa8772ad810f8b09a098a940ab0c

5 years agoMerge "Wrap the "bytes changed" indication on Special:Contributions with CSS"
jenkins-bot [Fri, 16 Nov 2018 00:55:17 +0000 (00:55 +0000)]
Merge "Wrap the "bytes changed" indication on Special:Contributions with CSS"

5 years agoWrap the "bytes changed" indication on Special:Contributions with CSS
jdlrobson [Wed, 14 Nov 2018 01:02:26 +0000 (17:02 -0800)]
Wrap the "bytes changed" indication on Special:Contributions with CSS

Rather than use actual text, move the parentheses that serve as
presentation into the CSS.

Bug: T205581
Change-Id: I4ae645ca0edf0001a20c228f90f8d43a10cfff71

5 years agoMerge "Accessibility: Improve contributions navigation for screen reader users"
jenkins-bot [Fri, 16 Nov 2018 00:30:31 +0000 (00:30 +0000)]
Merge "Accessibility: Improve contributions navigation for screen reader users"

5 years agoAccessibility: Improve contributions navigation for screen reader users
jdlrobson [Mon, 12 Nov 2018 23:43:05 +0000 (15:43 -0800)]
Accessibility: Improve contributions navigation for screen reader users

`.mw-changeslist-link-list` is not a list element any more per user
feedback and renamed `mw-changeslist-links`

Changing the class name has no implications on caching as this
only impacts Special:Contributions

Bug: T205581
Change-Id: Id2faaaa847c9a9ad57da5942ca9cf92462089d3a

5 years agoRCFilters: Blur the input after it is cleared
Moriel Schottlender [Thu, 15 Nov 2018 23:47:11 +0000 (15:47 -0800)]
RCFilters: Blur the input after it is cleared

The TagMultiselectWidget becomes invalid if there's text left
in the input when the input is blurred; we need to make sure we
are blurring the input *after* the input was cleared.

Bug: T209657
Change-Id: Ib8b2f174729442f499425d9880f291e6430ded39

5 years agoMerge "Reset legend `font-size` in OOUI HTMLForms"
jenkins-bot [Thu, 15 Nov 2018 22:36:28 +0000 (22:36 +0000)]
Merge "Reset legend `font-size` in OOUI HTMLForms"

5 years agoReset legend `font-size` in OOUI HTMLForms
Volker E [Thu, 15 Nov 2018 21:59:02 +0000 (13:59 -0800)]
Reset legend `font-size` in OOUI HTMLForms

It wrongly inherits generic elements style and results in smaller
than expected `font-size`. With this patch we're applying the correct
size.

Change-Id: I42160fc28b22920fbe4a8de48405480ff736aa4d

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 15 Nov 2018 21:39:46 +0000 (22:39 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8bdc2250ee4c4a074a3f1cd6e02b8442e59ef4a7

5 years agoMerge "Add *.iml to .gitignore"
jenkins-bot [Thu, 15 Nov 2018 11:03:07 +0000 (11:03 +0000)]
Merge "Add *.iml to .gitignore"

5 years agoMerge "Drop the image_comment_temp table"
jenkins-bot [Thu, 15 Nov 2018 04:48:34 +0000 (04:48 +0000)]
Merge "Drop the image_comment_temp table"

5 years agoEditPage: Add returntoquery parameter to anoneditwarning links
Roan Kattouw [Thu, 15 Nov 2018 01:08:45 +0000 (17:08 -0800)]
EditPage: Add returntoquery parameter to anoneditwarning links

It's important to send people back not just to the page they were
editing, but to the actual edit action as well.

Bug: T208989
Change-Id: I010145840da1ac93927db846872eaf9843116bd7

5 years agoMerge "Change language fallback for Eastern Pwo from Tibetan to Burmese"
jenkins-bot [Wed, 14 Nov 2018 22:39:28 +0000 (22:39 +0000)]
Merge "Change language fallback for Eastern Pwo from Tibetan to Burmese"

5 years agoMerge "Wrap the text for out-of-date edits into a warningbox"
jenkins-bot [Wed, 14 Nov 2018 22:10:46 +0000 (22:10 +0000)]
Merge "Wrap the text for out-of-date edits into a warningbox"

5 years agoMerge "Special:Preferences: Split up "Advanced options" on watchlist and RC tabs"
jenkins-bot [Wed, 14 Nov 2018 20:52:39 +0000 (20:52 +0000)]
Merge "Special:Preferences: Split up "Advanced options" on watchlist and RC tabs"

5 years agoAdd *.iml to .gitignore
Amir Sarabadani [Wed, 14 Nov 2018 20:25:23 +0000 (21:25 +0100)]
Add *.iml to .gitignore

Made by IntelliJ IDEA

Change-Id: Ifd55b5cfeed187d68497346065eb976d169720c8

5 years agoDrop the image_comment_temp table
Brad Jorsch [Wed, 7 Mar 2018 20:25:53 +0000 (15:25 -0500)]
Drop the image_comment_temp table

It is no longer used.

Bug: T188132
Change-Id: Ic8efeddc030f48e82ba861926121b64eca37d169

5 years agoChange language fallback for Eastern Pwo from Tibetan to Burmese
MarcoAurelio [Wed, 14 Nov 2018 19:39:43 +0000 (19:39 +0000)]
Change language fallback for Eastern Pwo from Tibetan to Burmese

Bug: T209338
Change-Id: Ib27881bb1452ecfc8d2dcd6c5348972f409ada2b

5 years agoMerge "JobQueue: Actually return the value from getRootJobCacheKey()"
jenkins-bot [Wed, 14 Nov 2018 19:03:32 +0000 (19:03 +0000)]
Merge "JobQueue: Actually return the value from getRootJobCacheKey()"

5 years agoJobQueue: Actually return the value from getRootJobCacheKey()
Brad Jorsch [Wed, 14 Nov 2018 18:41:04 +0000 (13:41 -0500)]
JobQueue: Actually return the value from getRootJobCacheKey()

I8d94a650e accidentally left out the 'return' keyword, so the function
returns null.

Bug: T209429
Change-Id: Ie29c1ea5eab6ddedd0fe58010fc9cf8e3a6e2f12

5 years agoFollow-up bb07b4a3: Add RELEASE-NOTES
James D. Forrester [Wed, 14 Nov 2018 17:57:27 +0000 (09:57 -0800)]
Follow-up bb07b4a3: Add RELEASE-NOTES

Change-Id: I1daaac502a45961aad9d7bf392338f9860ab7536

5 years agoMerge "Set migration stage for change tag to read new"
jenkins-bot [Wed, 14 Nov 2018 16:28:34 +0000 (16:28 +0000)]
Merge "Set migration stage for change tag to read new"

5 years agoMerge "LogEventsList: Don't output '0000-00-00' as default date"
jenkins-bot [Wed, 14 Nov 2018 15:29:58 +0000 (15:29 +0000)]
Merge "LogEventsList: Don't output '0000-00-00' as default date"

5 years agoLogEventsList: Don't output '0000-00-00' as default date
Bartosz Dziewoński [Wed, 14 Nov 2018 14:49:22 +0000 (15:49 +0100)]
LogEventsList: Don't output '0000-00-00' as default date

It is an invalid value that should be (by spec) ignored by the
browser, but apparently some browsers don't ignore it, and when they
submit it back, it is converted to -0001-11-30 by our date parsing.

Bug: T209490
Change-Id: I2643767a0091c1c9db78706358903e1dc97b59d1

5 years agoMerge "TitlesMultiSelectWidget: pass through 'input' config"
jenkins-bot [Wed, 14 Nov 2018 14:01:23 +0000 (14:01 +0000)]
Merge "TitlesMultiSelectWidget: pass through 'input' config"

5 years agoMerge "Special:Log: Use OOUI"
jenkins-bot [Wed, 14 Nov 2018 13:13:17 +0000 (13:13 +0000)]
Merge "Special:Log: Use OOUI"

5 years agoMerge "Remove outdated CSS selectors for Special:AllMessages"
jenkins-bot [Wed, 14 Nov 2018 13:13:04 +0000 (13:13 +0000)]
Merge "Remove outdated CSS selectors for Special:AllMessages"

5 years agoSpecial:Preferences: Split up "Advanced options" on watchlist and RC tabs
Bartosz Dziewoński [Tue, 25 Sep 2018 05:35:55 +0000 (07:35 +0200)]
Special:Preferences: Split up "Advanced options" on watchlist and RC tabs

On Special:Preferences, in the "Watchlist" and "Recent changes" tabs,
there is currently an "Advanced options" section, which contains a
huge list of mostly unrelated checkboxes.

Split off some of them that are actually related to two new sections,
"Watched pages" and "Changes shown", to make it easier to understand
their purpose.

Change-Id: I9bf91b78f6af49214a5d467d0896c63eb376d3d2

5 years agoDelete optional Russian translations
Amir Aharoni [Wed, 14 Nov 2018 10:02:19 +0000 (12:02 +0200)]
Delete optional Russian translations

Bug: T209461
Change-Id: I4b387913be6a77a36a453f3991e38d3a70307377

5 years agoRCFilters: Removing unused images
Volker E [Wed, 14 Nov 2018 03:23:59 +0000 (19:23 -0800)]
RCFilters: Removing unused images

Those images were replaced by their direct OOUI originals.

Change-Id: Ia53d5204366e69a76f31c17f52e63f349511592c

5 years agoRemove outdated CSS selectors for Special:AllMessages
Volker E [Wed, 14 Nov 2018 02:14:24 +0000 (18:14 -0800)]
Remove outdated CSS selectors for Special:AllMessages

Change-Id: I94a6b2bd9a69cd60363e53df0147b98d43061745

5 years agoMerge "Hard deprecate codepaths where tidy is disabled"
jenkins-bot [Tue, 13 Nov 2018 23:54:24 +0000 (23:54 +0000)]
Merge "Hard deprecate codepaths where tidy is disabled"

5 years agoMerge "doc: Modernise parameter names and documentation for 'replica' DBs"
jenkins-bot [Tue, 13 Nov 2018 21:39:14 +0000 (21:39 +0000)]
Merge "doc: Modernise parameter names and documentation for 'replica' DBs"

5 years agoMerge "Special:AllMessages: Rename 'Go' to 'Filter'"
jenkins-bot [Tue, 13 Nov 2018 21:18:02 +0000 (21:18 +0000)]
Merge "Special:AllMessages: Rename 'Go' to 'Filter'"

5 years agoMerge "JSON formatversion=2 is no longer experimental"
jenkins-bot [Tue, 13 Nov 2018 20:47:27 +0000 (20:47 +0000)]
Merge "JSON formatversion=2 is no longer experimental"

5 years agoMerge "TitlesMultiselectWidget: rename 'limit' config to 'tagLimit'"
jenkins-bot [Tue, 13 Nov 2018 20:10:31 +0000 (20:10 +0000)]
Merge "TitlesMultiselectWidget: rename 'limit' config to 'tagLimit'"

5 years agoMerge "TitlesMultiselectWidget: pass through additional configs"
jenkins-bot [Tue, 13 Nov 2018 20:10:24 +0000 (20:10 +0000)]
Merge "TitlesMultiselectWidget: pass through additional configs"

5 years agoTitlesMultiSelectWidget: pass through 'input' config
Thalia [Mon, 12 Nov 2018 16:00:11 +0000 (16:00 +0000)]
TitlesMultiSelectWidget: pass through 'input' config

Also set 'autocomplete' to false in the 'input' config
in Special:Block.

Bug: T208551
Change-Id: I0376e4ce809aeb48496530cdd5d39ac9142c28bd

5 years agoTitlesMultiselectWidget: rename 'limit' config to 'tagLimit'
Thalia [Thu, 8 Nov 2018 14:28:21 +0000 (14:28 +0000)]
TitlesMultiselectWidget: rename 'limit' config to 'tagLimit'

To avoid conflicting with TitleWidget config.

Bug: T209057
Change-Id: Ia0dbc49f38a116202eb2658b7556fb7f0627f1bb

5 years agoTitlesMultiselectWidget: pass through additional configs
Thalia [Thu, 8 Nov 2018 13:52:55 +0000 (13:52 +0000)]
TitlesMultiselectWidget: pass through additional configs

Pass through 'limit' and 'showMissing' configs.

Also set 'showMissing' to false for partial blocks.

Bug: T208626
Bug: T208627
Change-Id: Ifa75e2d390bf349226ad69d68adcdcaf742ab560

5 years agoMerge "Add a Status and a $reason parameter to TitleMove hook"
jenkins-bot [Tue, 13 Nov 2018 16:59:33 +0000 (16:59 +0000)]
Merge "Add a Status and a $reason parameter to TitleMove hook"

5 years agoRemoves Google web search from exception page
Juan Osorio [Fri, 9 Nov 2018 22:45:55 +0000 (14:45 -0800)]
Removes Google web search from exception page

When a wiki is down, it is not necessarily useful to be able to
search the web. Additionally, there is general consensus that
the hard-coded Google search form should be removed.

Bug: T208871
Change-Id: I5bcae848de1144d4fc1116c475b2e2ab1ccc3f7d

5 years agoAdd a Status and a $reason parameter to TitleMove hook
Daimona Eaytoy [Thu, 8 Nov 2018 15:02:43 +0000 (16:02 +0100)]
Add a Status and a $reason parameter to TitleMove hook

So that using this hook it's possible to prevent the move, also
providing some more context.
Also, clean error message: instead of going with "you do not have
permission blah blah" for *every* kind of error, use it only when the
error is actually about permissions, and use a generic message
otherwise.

Bug: T208907
Change-Id: I4733724075b7514e9db59e7be772d9409aa9da87

5 years agoMerge "Comments, tests, and tweaks for JSON decoding quirks"
jenkins-bot [Tue, 13 Nov 2018 02:44:02 +0000 (02:44 +0000)]
Merge "Comments, tests, and tweaks for JSON decoding quirks"

5 years agoUse new externallinks.el_index_60 field
Brad Jorsch [Sat, 19 Nov 2016 00:50:43 +0000 (19:50 -0500)]
Use new externallinks.el_index_60 field

This adds a method to LinkFilter to build the query conditions necessary
to properly use it, and adjusts code to use it.

This also takes the opportunity to clean up the calculation of el_index:
IPs are handled more sensibly and IDNs are canonicalized.

Also weird edge cases for invalid hosts like "http://.example.com" and
corresponding searches like "http://*..example.com" are now handled more
regularly instead of being treated as if the extra dot were omitted,
while explicit specification of the DNS root like "http://example.com./"
is canonicalized to the usual implicit specification.

Note that this patch will break link searches for links where the host
is an IP or IDN until refreshExternallinksIndex.php is run.

Bug: T59176
Bug: T130482
Change-Id: I84d224ef23de22dfe179009ec3a11fd0e4b5f56d

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 12 Nov 2018 20:55:50 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ice13adf03f6dd4f0cb26ddef0c83f8e661c82255

5 years agoWrap the text for out-of-date edits into a warningbox
LukBukkit [Mon, 12 Nov 2018 13:16:32 +0000 (14:16 +0100)]
Wrap the text for out-of-date edits into a warningbox

I'm using the Html util class, because of T166915

Bug: T202248
Change-Id: I073cb5a214da939986a8d7a2a244a04e4dfad1e3

5 years agoDoc: result domain for GlobalFunctions::wfRandom()
Stephen Niedzielski [Thu, 25 Oct 2018 13:30:25 +0000 (07:30 -0600)]
Doc: result domain for GlobalFunctions::wfRandom()

Domain is an important property to document for callers. For example,
random numbers are often used in calculations that are input into array
index calculations and the knowledge that a function can or cannot ever
return the integer 1 helps avoid rare off-by-one errors that may occur.
`int( wfRandom() * count( $array ) )` will always yield an in-bounds
index if wfRandom() returns [0, 1) but can make no such guarantee for
[0, 1].

It's not immediately obvious from the implementation whether the
endpoints of the domain of wfRandom() are inclusive or exclusive. This
patch calculates the minimum and maximum results and documents it.

For its minimal value, given `mt_getrandmax()` returns 1 and `mt_rand()`
returns 0:

  $max = mt_getrandmax() + 1;
  $max = 2;
$rand = ( mt_rand() * $max + mt_rand() ) / $max / $max;
  $rand = ( 0 * 2 + 0 ) / 2 / 2;
  $rand = 0;

For its maximal value, given `mt_getrandmax()` returns 2^31 - 1 and
`mt_rand()` also returns 2^31 - 1.

  $max = mt_getrandmax() + 1;
  $max = 2^31 - 1 + 1;
  $max = 2^31;
  $rand = ( mt_rand() * $max + mt_rand() ) / $max / $max;
  $rand = ( (2^31 - 1) * 2^31 + 2^31 - 1 ) / 2^31 / 2^31;
  $rand = ( 2^62 - 2^31 + 2^31 - 1 ) / 2^31 / 2^31;
  $rand = 2^62 / 2^62 - 1 / 2^62;
  $rand = 1 - 2^-62; // Less than 1.

Change-Id: Ib179d70902e231eaeeafe6449f505464eb25204d

5 years agoSpecial:AllMessages: Rename 'Go' to 'Filter'
Volker E [Mon, 12 Nov 2018 01:54:54 +0000 (17:54 -0800)]
Special:AllMessages: Rename 'Go' to 'Filter'

Being more explicit about action of primary button.

Bug: T209255
Change-Id: Id1fa035aca6c89120c5178ce94dc12395dcfe04d

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 11 Nov 2018 20:53:40 +0000 (21:53 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8298aee1349476a791d61e9a5dc46b713646afb7

5 years agoSpecial:Log: Use OOUI
Volker E [Sun, 11 Nov 2018 01:10:08 +0000 (17:10 -0800)]
Special:Log: Use OOUI

Bug: T117737
Change-Id: I1a7028a35359d507f699c77a69b09853d45362f5

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 10 Nov 2018 20:56:56 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I5289942488e5f7d69985bae83ec063f14cbcf55d

5 years agoMerge "Provide a script to reset the page_random column"
jenkins-bot [Sat, 10 Nov 2018 18:14:17 +0000 (18:14 +0000)]
Merge "Provide a script to reset the page_random column"

5 years agoProvide a script to reset the page_random column
Piotr Miazga [Thu, 8 Nov 2018 23:45:47 +0000 (18:45 -0500)]
Provide a script to reset the page_random column

Bug: T208909
Change-Id: I914ff44d1212c565e08ff17effbd682dfe7f70fb

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 9 Nov 2018 20:55:06 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia81d27cabb414c2cac0d8a85c086cffd0cc96aa0

5 years agoUpdate OOUI to v0.29.5
James D. Forrester [Thu, 8 Nov 2018 22:42:29 +0000 (14:42 -0800)]
Update OOUI to v0.29.5

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.29.5

Bug: T208966
Bug: T209057
Depends-On: I99cd8589f81daf98ee2a740ffe28159d4613211b
Change-Id: I99cd8589f81daf98ee2a740ffe28159d4613211a

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 8 Nov 2018 20:57:48 +0000 (21:57 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I6616dd23be0d49bbfa1079a6251e728d78ae5abd

5 years agoMerge "Fix indenting and newlines"
jenkins-bot [Thu, 8 Nov 2018 19:20:04 +0000 (19:20 +0000)]
Merge "Fix indenting and newlines"

5 years agoMerge "Add test for completionSearch with wgCapitalLinkOverrides"
jenkins-bot [Thu, 8 Nov 2018 16:01:20 +0000 (16:01 +0000)]
Merge "Add test for completionSearch with wgCapitalLinkOverrides"

5 years agoAdd some additional domains to the CSP false positive list
Brian Wolff [Mon, 29 Oct 2018 07:23:38 +0000 (07:23 +0000)]
Add some additional domains to the CSP false positive list

Based on Wikimedia server logs

Change-Id: If9523d49a55572b222fb60c2832f84b21fb81f05

5 years agoResourceLoader: Fail less hard when JSON serialization of config fails
Roan Kattouw [Wed, 7 Nov 2018 23:04:50 +0000 (15:04 -0800)]
ResourceLoader: Fail less hard when JSON serialization of config fails

Instead of throwing an exception on the PHP side, log an error on the JS
side.

Change-Id: I673f59d936e48072e78f6b061ac06f37274ded77

5 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 7 Nov 2018 20:59:14 +0000 (21:59 +0100)]
Localisation updates from https://translatewiki.net.

Change-Id: I8333ca780f85f780cf39efe10fa510596bdc3118