lhc/web/wiklou.git
3 years agoAdd @deprecated tags to DatabaseBase
Reedy [Tue, 29 May 2018 21:38:49 +0000 (22:38 +0100)]
Add @deprecated tags to DatabaseBase

It was there in REL1_27, but REL1_28 Database was the default...

Bug: T195576
Change-Id: I06d3a48c3112da95f38bb7f6a055fe7682e03096

3 years agoAdd @deprecated tags to various class_alias calls
Reedy [Tue, 29 May 2018 16:21:31 +0000 (17:21 +0100)]
Add @deprecated tags to various class_alias calls

Bug: T195576
Change-Id: I10cd8415891bfe4a278eee06c9cfe905b3e036dc

3 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 29 May 2018 20:01:52 +0000 (22:01 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ia47406929fcf2e288dbc4621ae6cf64ad2c3d070

3 years agoMerge "Xml.php: Do not escape double quotes in $contents of Xml::element()"
jenkins-bot [Tue, 29 May 2018 19:26:33 +0000 (19:26 +0000)]
Merge "Xml.php: Do not escape double quotes in $contents of Xml::element()"

3 years agoMerge "API: ApiBase::getParameter() shouldn't throw on other params' errors"
jenkins-bot [Tue, 29 May 2018 19:04:27 +0000 (19:04 +0000)]
Merge "API: ApiBase::getParameter() shouldn't throw on other params' errors"

3 years agoMerge "OOUIHTMLForm: Improve HTMLCheckMatrix for further clarity"
jenkins-bot [Tue, 29 May 2018 17:52:16 +0000 (17:52 +0000)]
Merge "OOUIHTMLForm: Improve HTMLCheckMatrix for further clarity"

3 years agoMerge "Remove deprecated wgResourceLoaderLESSImportPaths"
jenkins-bot [Tue, 29 May 2018 17:19:23 +0000 (17:19 +0000)]
Merge "Remove deprecated wgResourceLoaderLESSImportPaths"

3 years agoMerge "Improve ExtensionRegistry test coverage"
jenkins-bot [Tue, 29 May 2018 17:18:20 +0000 (17:18 +0000)]
Merge "Improve ExtensionRegistry test coverage"

3 years agoMerge "Deprecate Parser::fetchFile() since it's unused"
jenkins-bot [Tue, 29 May 2018 17:04:44 +0000 (17:04 +0000)]
Merge "Deprecate Parser::fetchFile() since it's unused"

3 years agoOOUIHTMLForm: Improve HTMLCheckMatrix for further clarity
Volker E [Tue, 29 May 2018 11:50:11 +0000 (13:50 +0200)]
OOUIHTMLForm: Improve HTMLCheckMatrix for further clarity

Increase distance between rows slightly and use white to
emphasise row `:hover` color contrast.
Also
- amend `padding` to full pixel widths and
- center-align all but the checkbox labels for better orientation.

Bug: T194536
Change-Id: I03e193beaa8c6479a710056d095cb79098544389

3 years agoRemove deprecated wgResourceLoaderLESSImportPaths
Timo Tijhof [Sat, 19 May 2018 18:37:21 +0000 (20:37 +0200)]
Remove deprecated wgResourceLoaderLESSImportPaths

The last remaining users of this feature were MobileFrontend and Minerva,
which have been migrated to direct imports.

Bug: T140807
Change-Id: I1a66a2ad314bde332297798520e5ec3e0e3d4c9b

3 years agoMerge "resourceloader: Add coverage for empty case in makeModuleResponse"
jenkins-bot [Tue, 29 May 2018 03:09:00 +0000 (03:09 +0000)]
Merge "resourceloader: Add coverage for empty case in makeModuleResponse"

3 years agoresourceloader: Add coverage for empty case in makeModuleResponse
Timo Tijhof [Tue, 29 May 2018 02:03:31 +0000 (03:03 +0100)]
resourceloader: Add coverage for empty case in makeModuleResponse

Adds coverage for line 1049-1056.

Also, follow-up 6292d54dff by simpliying the regex by using /s modifier to
enable PCRE_DOTALL which includes matching of new lines.

Change-Id: Icec34dfe107d418951b3d155234295c79410ffaa

3 years agoMerge "Fix help link on Special:PasswordPolicies"
jenkins-bot [Tue, 29 May 2018 02:05:30 +0000 (02:05 +0000)]
Merge "Fix help link on Special:PasswordPolicies"

3 years agoMerge "Complete coverage of Parser::getTemplateDom()"
jenkins-bot [Tue, 29 May 2018 01:50:13 +0000 (01:50 +0000)]
Merge "Complete coverage of Parser::getTemplateDom()"

3 years agoFix help link on Special:PasswordPolicies
Kunal Mehta [Tue, 29 May 2018 01:46:12 +0000 (18:46 -0700)]
Fix help link on Special:PasswordPolicies

'passwordpolicies-helppage' shouldn't be configured in Git - it's
intended for wikis to set a local override. Instead, set the proper
destination in the addHelpLink() call itself.

As a sidenote, a MediaWiki configuration setting documentation page
isn't the best place for user-facing documentation, a proper help page
should be created in the future.

Bug: T195799
Change-Id: If47b86bbd14f05235fa1cb8c910e2362400d23ac

3 years agoAPI: ApiBase::getParameter() shouldn't throw on other params' errors
Brad Jorsch [Mon, 28 May 2018 22:45:24 +0000 (18:45 -0400)]
API: ApiBase::getParameter() shouldn't throw on other params' errors

This regression was introduced in Ia19a1617b7.

Bug: T195777
Change-Id: I1e1eb3861ced83f79e56d2325ab693ef4e393999

3 years agoMerge "mediawiki.action.edit.styles: Fix alignment of "Cancel" link/button"
jenkins-bot [Mon, 28 May 2018 21:18:06 +0000 (21:18 +0000)]
Merge "mediawiki.action.edit.styles: Fix alignment of "Cancel" link/button"

3 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 28 May 2018 20:17:22 +0000 (22:17 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ied787b7f07a91cabbe26a85d04e2ed730444637e

3 years agomediawiki.action.edit.styles: Fix alignment of "Cancel" link/button
Bartosz Dziewoński [Mon, 28 May 2018 18:53:30 +0000 (20:53 +0200)]
mediawiki.action.edit.styles: Fix alignment of "Cancel" link/button

Follow-up to f6afdf96d93713981b6bbe4ceeb8363cfc491803, which
accidentally caused it to have the margin applied twice.

Bug: T195673
Change-Id: I7c0ad98e77bf9156c623dcc5b592de52f8e87df8

3 years agoMerge "Send a cookie with IP/IP-Range blocks when blocking logged-out users"
jenkins-bot [Mon, 28 May 2018 13:35:21 +0000 (13:35 +0000)]
Merge "Send a cookie with IP/IP-Range blocks when blocking logged-out users"

3 years agoMerge "resourceloader: Include global LESS variables in LESS cache key"
jenkins-bot [Mon, 28 May 2018 11:36:32 +0000 (11:36 +0000)]
Merge "resourceloader: Include global LESS variables in LESS cache key"

3 years agoDeprecate Parser::fetchFile() since it's unused
Kunal Mehta [Mon, 28 May 2018 06:16:28 +0000 (23:16 -0700)]
Deprecate Parser::fetchFile() since it's unused

Change-Id: Ic2bc3dd0479a373159a22da5f0a6961e212352ff

3 years agoComplete coverage of Parser::getTemplateDom()
Kunal Mehta [Mon, 28 May 2018 06:05:48 +0000 (23:05 -0700)]
Complete coverage of Parser::getTemplateDom()

This test covers the branch of code when the $mTplRedirCache is already
populated, by using the same template that redirects twice.

Change-Id: Ie0ce277c75366b7b060e0da6873175976621aff9

3 years agoMerge "Remove deprecated utfnormal back-compat"
jenkins-bot [Mon, 28 May 2018 03:50:48 +0000 (03:50 +0000)]
Merge "Remove deprecated utfnormal back-compat"

3 years agoMerge "Add 'Special:MyLanguage' in 'All skins' category link"
jenkins-bot [Mon, 28 May 2018 03:41:37 +0000 (03:41 +0000)]
Merge "Add 'Special:MyLanguage' in 'All skins' category link"

3 years agoImprove ExtensionRegistry test coverage
Kunal Mehta [Mon, 28 May 2018 03:36:22 +0000 (20:36 -0700)]
Improve ExtensionRegistry test coverage

Change-Id: Id1b87e020a220c96b42d86485da67d47b9d565f9

3 years agoRemove deprecated utfnormal back-compat
Kunal Mehta [Fri, 25 May 2018 18:47:32 +0000 (11:47 -0700)]
Remove deprecated utfnormal back-compat

Change-Id: Id8f497d0bbaab8282057c9d271a7c9b1e77d1a3f

3 years agoresourceloader: Add coverage for non-js error case in makeModuleResponse
Timo Tijhof [Mon, 28 May 2018 00:39:58 +0000 (01:39 +0100)]
resourceloader: Add coverage for non-js error case in makeModuleResponse

Adds coverage for line 1170-1175.

Change-Id: I2208264d3fca306b2740b243d7cdc209b224ebca

3 years agoMerge "Improve Parser::braceSubstitution() coverage"
jenkins-bot [Sun, 27 May 2018 23:26:33 +0000 (23:26 +0000)]
Merge "Improve Parser::braceSubstitution() coverage"

3 years agoMerge "Remove eslint-disable no-use-before-define"
jenkins-bot [Sun, 27 May 2018 20:47:17 +0000 (20:47 +0000)]
Merge "Remove eslint-disable no-use-before-define"

3 years agoMerge "Hooks: remove some unnecessary code"
jenkins-bot [Sun, 27 May 2018 20:28:23 +0000 (20:28 +0000)]
Merge "Hooks: remove some unnecessary code"

3 years agoMerge "Complete test coverage of Hooks class"
jenkins-bot [Sun, 27 May 2018 20:28:21 +0000 (20:28 +0000)]
Merge "Complete test coverage of Hooks class"

3 years agoRemove eslint-disable no-use-before-define
Fomafix [Sat, 26 May 2018 12:58:37 +0000 (14:58 +0200)]
Remove eslint-disable no-use-before-define

mediawiki.js: Reorder setGlobalMapValue() to avoid a forward reference.
mediawiki.action.edit.stash.js: Reorder two functions without to avoid
  forward references.

In all other cases add eslint-disable-next-line no-use-before-define.

Change-Id: Ic8b2f8cf61dcfb1a215ad3d3dddfd40282e3e836

3 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 27 May 2018 19:57:02 +0000 (21:57 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I5c895f4b61a73570671acf36c817cc405f54ec0b

3 years agoMerge "Improve AutoLoader test coverage"
jenkins-bot [Sun, 27 May 2018 19:50:45 +0000 (19:50 +0000)]
Merge "Improve AutoLoader test coverage"

3 years agoHooks: remove some unnecessary code
Kunal Mehta [Sun, 27 May 2018 06:39:07 +0000 (23:39 -0700)]
Hooks: remove some unnecessary code

PHP automatically creates the array when you try to append an item to
it. Really.

Change-Id: I73b1efe749a9311feeb0d14e1c76b5bbbc0265bd

3 years agoComplete test coverage of Hooks class
Kunal Mehta [Sun, 27 May 2018 06:38:28 +0000 (23:38 -0700)]
Complete test coverage of Hooks class

Change-Id: I9e720c44e6d6c9c5d726a8a147e07ee9b638913f

3 years agoImprove Parser::braceSubstitution() coverage
Kunal Mehta [Sun, 27 May 2018 05:57:55 +0000 (22:57 -0700)]
Improve Parser::braceSubstitution() coverage

Change-Id: I3d9426143fe486c6aed0494b68773a36e24c02d9

3 years agoImprove AutoLoader test coverage
Kunal Mehta [Sun, 27 May 2018 04:29:36 +0000 (21:29 -0700)]
Improve AutoLoader test coverage

Change-Id: Iddb24cad41979a4798392ab08d104dac41ed736d

3 years agoParser: Don't catch exception just to rethrow it
Kunal Mehta [Sun, 27 May 2018 01:14:51 +0000 (18:14 -0700)]
Parser: Don't catch exception just to rethrow it

This is left over from 4ff813680.

Change-Id: I624c2c22b7736af249647997565fe06f52d40fe2

3 years agoMerge "AutoLoaderStructureTest: Allow PSR-4 directories to have files with 0 classes"
jenkins-bot [Sun, 27 May 2018 00:13:13 +0000 (00:13 +0000)]
Merge "AutoLoaderStructureTest: Allow PSR-4 directories to have files with 0 classes"

3 years agoMerge "Rename ApiQueryContributions to ApiQueryUserContribs to match api module name"
jenkins-bot [Sat, 26 May 2018 23:57:30 +0000 (23:57 +0000)]
Merge "Rename ApiQueryContributions to ApiQueryUserContribs to match api module name"

3 years agoAutoLoaderStructureTest: Allow PSR-4 directories to have files with 0 classes
Kunal Mehta [Sat, 26 May 2018 23:51:56 +0000 (16:51 -0700)]
AutoLoaderStructureTest: Allow PSR-4 directories to have files with 0 classes

Files like ServiceWiring.php can be safely located in a PSR-4 autoloaded
directory, because they have no classes.

Change-Id: I359b305df9071d6bc5afe4b5f29e762041f4aaef

3 years agoSplit AutoloaderTest into a structure and class test
Kunal Mehta [Fri, 25 May 2018 05:13:22 +0000 (22:13 -0700)]
Split AutoloaderTest into a structure and class test

AutoloaderTest covers the AutoLoader class, and AutoLoaderStructureTest
covers the structure part of the test.

Change-Id: Ic4e7bfd670e1c3413631bda31260cc1cc825b1a2

3 years agoMerge "Increase cleanupTitles.php batch size"
jenkins-bot [Sat, 26 May 2018 23:09:05 +0000 (23:09 +0000)]
Merge "Increase cleanupTitles.php batch size"

3 years agoRename ApiQueryContributions to ApiQueryUserContribs to match api module name
Reedy [Fri, 25 May 2018 00:46:30 +0000 (01:46 +0100)]
Rename ApiQueryContributions to ApiQueryUserContribs to match api module name

Change-Id: I865628b87eda7be349522fcfaf94f5563142026e

3 years agoMerge "Hard deprecate UtfNormal methods"
jenkins-bot [Sat, 26 May 2018 23:06:25 +0000 (23:06 +0000)]
Merge "Hard deprecate UtfNormal methods"

3 years agoMerge "Switch includes/{sparql,Storage,tidy} to use the PSR-4 autoloader"
jenkins-bot [Sat, 26 May 2018 22:54:11 +0000 (22:54 +0000)]
Merge "Switch includes/{sparql,Storage,tidy} to use the PSR-4 autoloader"

3 years agoMerge "Switch includes/{preferences,services,session,shell} to use the PSR-4 autoloader"
jenkins-bot [Sat, 26 May 2018 22:40:47 +0000 (22:40 +0000)]
Merge "Switch includes/{preferences,services,session,shell} to use the PSR-4 autoloader"

3 years agoMerge "Add structure test to ensure PSR-4 autoloader covers everything"
jenkins-bot [Sat, 26 May 2018 22:40:44 +0000 (22:40 +0000)]
Merge "Add structure test to ensure PSR-4 autoloader covers everything"

3 years agoHard deprecate UtfNormal methods
Kunal Mehta [Fri, 25 May 2018 18:16:16 +0000 (11:16 -0700)]
Hard deprecate UtfNormal methods

Change-Id: Iafbf89aa85ae77cd790aeac6911ccc2d014a6c65

3 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 26 May 2018 21:03:33 +0000 (23:03 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I4500053ecbb780a723d5f2398a3d1693a9d12d31

3 years agoAdd 'Special:MyLanguage' in 'All skins' category link
Suriyaa Kudo [Sat, 26 May 2018 14:02:10 +0000 (16:02 +0200)]
Add 'Special:MyLanguage' in 'All skins' category link

Change-Id: I5f9f6c3c9151ea1570d0ec3f361af40fba8abd20

3 years agoAvoid PHP 7.2 warnings in DBConRefTest about count() on non-Countable
Aaron Schulz [Sat, 26 May 2018 00:29:17 +0000 (17:29 -0700)]
Avoid PHP 7.2 warnings in DBConRefTest about count() on non-Countable

Change-Id: Ida81bf998b462f2f6bb2b708df1f15bbc1933db1

3 years agoIncrease cleanupTitles.php batch size
Reedy [Sat, 26 May 2018 00:25:03 +0000 (00:25 +0000)]
Increase cleanupTitles.php batch size

Change-Id: I086892e44936fdaf9d5d1f3667325daaaaa7260e

3 years agoMerge "languages: Use static array files for normalizer data"
jenkins-bot [Fri, 25 May 2018 23:03:18 +0000 (23:03 +0000)]
Merge "languages: Use static array files for normalizer data"

3 years agoMerge "MediaWiki\Auth\Throttler: Change "ip" key name"
jenkins-bot [Fri, 25 May 2018 22:38:39 +0000 (22:38 +0000)]
Merge "MediaWiki\Auth\Throttler: Change "ip" key name"

3 years agoMediaWiki\Auth\Throttler: Change "ip" key name
Brad Jorsch [Fri, 25 May 2018 18:50:55 +0000 (14:50 -0400)]
MediaWiki\Auth\Throttler: Change "ip" key name

Apparently 'ip' is overwritten by logstash at some level, so use 'ipKey'
instead.

Change-Id: I0547acdbb9f3fc7a990bd4baa2d748e89bac8c3b

3 years agoMerge "Localisation updates from https://translatewiki.net."
L10n-bot [Fri, 25 May 2018 19:54:18 +0000 (19:54 +0000)]
Merge "Localisation updates from https://translatewiki.net."

3 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 25 May 2018 19:54:09 +0000 (21:54 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: I1bb2563f7ebba3c66062b79bd523c3f226b54cb9

3 years agoMerge "Enable merging of WrappedStringList between 'bottomscripts' and 'reportime'"
jenkins-bot [Fri, 25 May 2018 19:52:13 +0000 (19:52 +0000)]
Merge "Enable merging of WrappedStringList between 'bottomscripts' and 'reportime'"

3 years agoresourceloader: Include global LESS variables in LESS cache key
Alexia E. Smith [Tue, 10 Apr 2018 22:35:49 +0000 (17:35 -0500)]
resourceloader: Include global LESS variables in LESS cache key

This prevents cache churn when the wiki-global LESS variables vary
between wikis because the cache key is used as a "global" instead of
db-local. This is good for the common case, but should still explicitly
vary if the vars differ between wikis.

Bug: T191937
Change-Id: If12fd07a7062792205384150d6f5fd9a83f996cc

3 years agoRemove non namespaced TimestampException
Reedy [Fri, 25 May 2018 12:08:24 +0000 (13:08 +0100)]
Remove non namespaced TimestampException

Change-Id: I6d5cc227cacc6a24e92002e589e439a3bbd033a7

3 years agoMerge "Move includes/auth back to the standard classmap autoloader"
jenkins-bot [Fri, 25 May 2018 02:23:00 +0000 (02:23 +0000)]
Merge "Move includes/auth back to the standard classmap autoloader"

3 years agoSwitch includes/{sparql,Storage,tidy} to use the PSR-4 autoloader
Kunal Mehta [Thu, 24 May 2018 02:31:33 +0000 (19:31 -0700)]
Switch includes/{sparql,Storage,tidy} to use the PSR-4 autoloader

Change-Id: I1ae3cb3833a28286eb4ae09b586785d156917e8e

3 years agoSwitch includes/{preferences,services,session,shell} to use the PSR-4 autoloader
Kunal Mehta [Thu, 24 May 2018 02:28:33 +0000 (19:28 -0700)]
Switch includes/{preferences,services,session,shell} to use the PSR-4 autoloader

Change-Id: Ic095ed65d05517cdb7b383cde8c664044f790f05

3 years agoAdd structure test to ensure PSR-4 autoloader covers everything
Kunal Mehta [Fri, 25 May 2018 01:55:47 +0000 (18:55 -0700)]
Add structure test to ensure PSR-4 autoloader covers everything

This ensures that there aren't any classes inside a PSR-4 autoloaded
directory that aren't being autoloaded properly.

Change-Id: I200a8535c2f47a6bf3287a7fe1182151493372f4

3 years agoMove includes/auth back to the standard classmap autoloader
Kunal Mehta [Fri, 25 May 2018 01:57:28 +0000 (18:57 -0700)]
Move includes/auth back to the standard classmap autoloader

Partially reverts c587ab1375eaf61acbd3e066ff791d096e769189.

Change-Id: Ie8cfe356b07f08d481370b9f61b1d08ed6c9c799

3 years agoMerge "Restore 'PreferencesForm' as alias for 'PreferencesFormLegacy'"
jenkins-bot [Fri, 25 May 2018 00:56:01 +0000 (00:56 +0000)]
Merge "Restore 'PreferencesForm' as alias for 'PreferencesFormLegacy'"

3 years agoFollow-up If8dfdaf1: Hard-deprecate, drop two uses, other pre-5.3 back-compat code
James D. Forrester [Fri, 25 May 2018 00:01:02 +0000 (17:01 -0700)]
Follow-up If8dfdaf1: Hard-deprecate, drop two uses, other pre-5.3 back-compat code

Change-Id: I1c5eee3fe30d6687d88e07011a3d40b6770d0daf

3 years agoMerge "EditPage: Fix duplicate classic toolbar"
jenkins-bot [Thu, 24 May 2018 23:08:23 +0000 (23:08 +0000)]
Merge "EditPage: Fix duplicate classic toolbar"

3 years agoEditPage: Fix duplicate classic toolbar
Bartosz Dziewoński [Thu, 24 May 2018 22:54:14 +0000 (00:54 +0200)]
EditPage: Fix duplicate classic toolbar

Caused by an incorrectly resolved rebase conflict
between 14cffee7c1ea7e6f411730a52aadb2458fcfb0fd
and 70941efd35562dcb7003229b56c91a98a67de7a9.

Bug: T195517
Change-Id: I294acff48fe9b1a1a9384d717f09d90e417204ab

3 years agoInsert space before compatibility link in PHP version message
petarpetkovic [Thu, 24 May 2018 22:27:21 +0000 (00:27 +0200)]
Insert space before compatibility link in PHP version message

Change-Id: Ia056ba7f9eddbcf31082c7b2f7a64e7dbf02cba4

3 years agoMerge "Add unicode mapping for ICU 60 and 61"
jenkins-bot [Thu, 24 May 2018 21:46:32 +0000 (21:46 +0000)]
Merge "Add unicode mapping for ICU 60 and 61"

3 years agoAdd unicode mapping for ICU 60 and 61
Reedy [Thu, 24 May 2018 21:28:19 +0000 (22:28 +0100)]
Add unicode mapping for ICU 60 and 61

Change-Id: Ifbbc8d7ecc788bc2c6b07a8ebba46a9648545786

3 years agoIcuCollation: Deprecate getICUVersion(), no need for PHP53 back-compat
James D. Forrester [Thu, 24 May 2018 20:11:11 +0000 (13:11 -0700)]
IcuCollation: Deprecate getICUVersion(), no need for PHP53 back-compat

Change-Id: If8dfdaf187b32b7b9a2c09a240416b9f481593f1

3 years agoRestore 'PreferencesForm' as alias for 'PreferencesFormLegacy'
Bartosz Dziewoński [Wed, 9 May 2018 20:39:20 +0000 (22:39 +0200)]
Restore 'PreferencesForm' as alias for 'PreferencesFormLegacy'

In change 4633f4d46a8db46721474e9ffa6a130d8b7a2404 it was changed
to an interface implemented by both PreferencesFormLegacy and
PreferencesFormOOUI so that existing typehints for some functions
parameter would accept them both. Replace those typehints to use
HTMLForm instead. There was really no guarantee in the past that
they would only be given PreferencesForm or its subclasses, either.

Because the typehint change affects some hooks, note it as a
deprecation in MW 1.31 and a breaking change in MW 1.32.

Also add @since tags and correct some typos in code comments.

Follow-up to 4633f4d46a8db46721474e9ffa6a130d8b7a2404.

Change-Id: I61749f1d864cf68afe90cd9e15ba2d7a74252501

3 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 24 May 2018 19:53:30 +0000 (21:53 +0200)]
Localisation updates from https://translatewiki.net.

Change-Id: Ie807be662d077fe0e177e82834d70581210a5f3e

3 years agoMerge "mw.page.gallery: Prevent jumpiness due to viewport height changes"
jenkins-bot [Thu, 24 May 2018 19:17:44 +0000 (19:17 +0000)]
Merge "mw.page.gallery: Prevent jumpiness due to viewport height changes"

3 years agomw.page.gallery: Prevent jumpiness due to viewport height changes
Bartosz Dziewoński [Tue, 8 May 2018 19:12:00 +0000 (21:12 +0200)]
mw.page.gallery: Prevent jumpiness due to viewport height changes

* Do not recalculate if only viewport height has changed, but not
  width. Viewport height doesn't affect this at all.
* Set a min-height on the gallery element before resetting image
  dimensions so that content following it only reflows once, when
  we calculate dimensions again.

Bug: T194193
Change-Id: I6362863cc0f3f7b76c9ec7437d37ff6762ecf153

3 years agoMerge "Switch includes/{auth,edit,editpage} to use the PSR-4 autoloader"
jenkins-bot [Thu, 24 May 2018 17:00:16 +0000 (17:00 +0000)]
Merge "Switch includes/{auth,edit,editpage} to use the PSR-4 autoloader"

3 years agoMerge "Re-enable MediaWiki.Files.ClassMatchesFilename sniffs"
jenkins-bot [Thu, 24 May 2018 17:00:13 +0000 (17:00 +0000)]
Merge "Re-enable MediaWiki.Files.ClassMatchesFilename sniffs"

3 years agoMerge "Have class match filename in some maintenance scripts"
jenkins-bot [Thu, 24 May 2018 16:49:18 +0000 (16:49 +0000)]
Merge "Have class match filename in some maintenance scripts"

3 years agoBump PHP version requirement to 7.0.0+
James D. Forrester [Thu, 18 Jan 2018 23:34:32 +0000 (15:34 -0800)]
Bump PHP version requirement to 7.0.0+

Bug: T172165
Change-Id: I740f32ac859d9bb3787fdf8414f82ae6f410492f

3 years agoDrop $wgStyleVersion, deprecated in 1.31 and now unused
James D. Forrester [Wed, 23 May 2018 22:00:46 +0000 (15:00 -0700)]
Drop $wgStyleVersion, deprecated in 1.31 and now unused

Bug: T181318
Change-Id: Ib988f3118786debda135d6ad3d27deda5a51fc8a

3 years agoMerge "Skin: Drop appending of wgStyleVersion in getSkinStylePath()"
jenkins-bot [Thu, 24 May 2018 14:05:28 +0000 (14:05 +0000)]
Merge "Skin: Drop appending of wgStyleVersion in getSkinStylePath()"

3 years agoEnable merging of WrappedStringList between 'bottomscripts' and 'reportime'
Timo Tijhof [Thu, 24 May 2018 13:10:48 +0000 (14:10 +0100)]
Enable merging of WrappedStringList between 'bottomscripts' and 'reportime'

* Fix ResourceLoaderClientHtml to return what it was documented to
  return, a WrappedStringList. It accidentally used the wrong join()
  method, causing it to create a plain string too early.

* Update method documentations from ClientHtml::getBodyHtml to
  BaseTemplate::getTrail for 'bottomscripts', and from
  ResourceLoader::makeInlineScript for 'reporttime'.

* Update BaseTemplate::getTrail to join by new line instead of native string
  concatenation.

This by itself would suffice for the most common case, but in order
to also account for the possibility of extensions using hooks for
'SkinAfterBottomScripts' that concatenate, update bottomScripts()
to pass a plain string to the hook and merge it later.

Change-Id: If0d227cb9db67229a27d489c082db790ea8e3840

3 years agoMerge "resourceloader: Move style deprecation warnings to <body>"
jenkins-bot [Thu, 24 May 2018 13:03:21 +0000 (13:03 +0000)]
Merge "resourceloader: Move style deprecation warnings to <body>"

3 years agoRemove mentions of jquery.mw-jump in code comments
Timo Tijhof [Thu, 24 May 2018 12:35:50 +0000 (13:35 +0100)]
Remove mentions of jquery.mw-jump in code comments

The idea of listening for an event and doing something, with on('focus'),
is rather trivial and not worth attributing to another module, in particular
when that module is being phased out :)

Bug: T195256
Change-Id: Ic6a65254cbcc5e9503fece1afb7861a706713d77

3 years agoMerge "Add ability to filter based on rc_title in API"
jenkins-bot [Thu, 24 May 2018 10:13:06 +0000 (10:13 +0000)]
Merge "Add ability to filter based on rc_title in API"

3 years agoSend a cookie with IP/IP-Range blocks when blocking logged-out users
Dayllan Maza [Thu, 17 May 2018 05:55:02 +0000 (01:55 -0400)]
Send a cookie with IP/IP-Range blocks when blocking logged-out users

A cookie will be set when ip users try to edit and their IP has been
blocked or if they try to create an account and the block prevents
account creation

This feature is disabled by default and can be enabled by
setting the new $wgCookieSetOnIpBlock config variable to true.

Note: this is meant to discourage vandals that try to avoid blocks by
switching their ip address while editing anonymously.

Bug: T152462
Change-Id: I0b78a5e174bcd882edea39e868a08f9a347f5aba

3 years agoSwitch includes/{auth,edit,editpage} to use the PSR-4 autoloader
Kunal Mehta [Thu, 24 May 2018 01:24:05 +0000 (18:24 -0700)]
Switch includes/{auth,edit,editpage} to use the PSR-4 autoloader

Change-Id: I9210d26c1031d69f6691fef038cc2db6f391b70e

3 years agoRe-enable MediaWiki.Files.ClassMatchesFilename sniffs
Kunal Mehta [Thu, 24 May 2018 02:23:49 +0000 (19:23 -0700)]
Re-enable MediaWiki.Files.ClassMatchesFilename sniffs

Change-Id: I63f54b0336168a50aef72e38202e153677eafd3c

3 years agoHave class match filename in some maintenance scripts
Kunal Mehta [Thu, 24 May 2018 01:34:01 +0000 (18:34 -0700)]
Have class match filename in some maintenance scripts

Each of these scripts had a class name that was not referenced outside
of the script file itself, and are safe to rename as a result.

Change-Id: Id605aca11db51ee433baeaa998a0e33184c930ca

3 years agoMerge "Update wikimedia/wrappedstring to v3.0.0"
jenkins-bot [Thu, 24 May 2018 02:14:00 +0000 (02:14 +0000)]
Merge "Update wikimedia/wrappedstring to v3.0.0"

3 years agoMerge "IP: Fix sanitization of IPv4 ranges"
jenkins-bot [Thu, 24 May 2018 00:31:31 +0000 (00:31 +0000)]
Merge "IP: Fix sanitization of IPv4 ranges"

3 years agoMerge "Fix MediaWiki.Commenting.LicenseComment.InvalidLicenseTag errors"
jenkins-bot [Thu, 24 May 2018 00:27:01 +0000 (00:27 +0000)]
Merge "Fix MediaWiki.Commenting.LicenseComment.InvalidLicenseTag errors"

3 years agoMerge "RELEASE-NOTES-1.32: Line wrap to 80 chars"
jenkins-bot [Thu, 24 May 2018 00:08:04 +0000 (00:08 +0000)]
Merge "RELEASE-NOTES-1.32: Line wrap to 80 chars"

3 years agoSkin: Drop appending of wgStyleVersion in getSkinStylePath()
James D. Forrester [Wed, 23 May 2018 21:56:13 +0000 (14:56 -0700)]
Skin: Drop appending of wgStyleVersion in getSkinStylePath()

This setting is deprecated.

Bug: T181318
Change-Id: I9e56764e37b5f10ce1bddfb7826c18982fb1ebb2