Commit graph

62688 commits

Author SHA1 Message Date
C. Scott Ananian
a471ce8e00 api: Inject dependencies into ApiQueryInfo
Change-Id: I8a2f53c69a5fc7efa9e0b93244115ef68d479357
2020-12-11 10:57:35 -05:00
jenkins-bot
a3cf91f50d Merge "ApiQuerySiteInfo: Replace 'titleconversion' with 'linkconversion' boolean" 2020-12-09 16:30:53 +00:00
jenkins-bot
cdb51d6403 Merge "Split dropping of image.img_user_timestamp" 2020-12-09 16:30:46 +00:00
C. Scott Ananian
9ce31b41d5 ApiQuerySiteInfo: Replace 'titleconversion' with 'linkconversion' boolean
The 'linkconversion' boolean is also false if 'langconversion' is false.

You could enable title conversion but disable language conversion, but
that's really meaningless; there's no reason to expose that detail.
All of the WMF production sites enable both language conversion and
title/link conversion, so this will make no difference on any of our
production wikis.

Leave the 'titleconversion' field around in the siteinfo for backward
compatibility.

Followup-To: Icc4687638ff1815003dd903854efdbd904854f1e
Change-Id: I8959c9feb60af4cf4de1a2d44090f14a0a2f5a4d
2020-12-09 10:16:32 -05:00
jenkins-bot
16d09cf805 Merge "Article::view - remove the old subtitle from doOutputFromParserCache." 2020-12-09 09:16:18 +00:00
Translation updater bot
8c3123adc2 Localisation updates from https://translatewiki.net.
Change-Id: I732ee0183877149286a730c7d398569498d28879
2020-12-09 08:40:55 +01:00
Petr Pchelko
7cf60852fa Article::view - remove the old subtitle from doOutputFromParserCache.
The method is called from two places:
- For new revision ParserCache, when the subtitle doesn't need
to be applied. That call is protected by !oldid check
- For old revision cache, when subtitle is already applied before
checking the cache. So, no need to set it.

Bug: T269727
Change-Id: Ibec845ccfe43ae2cb4bbe0152c932cb74f3cef4b
2020-12-08 21:52:11 -06:00
Daimona Eaytoy
b18344ba1e Clarify error message in Database::assertBuildSubstringParams
Change-Id: Iba115a6c514b49b02c2073ebfc81b6fc2ec117e9
2020-12-09 02:38:31 +01:00
jenkins-bot
d2507bfaad Merge "Rename all PG logging indexes" 2020-12-08 23:38:14 +00:00
DannyS712
237a4f0a3e ImagePage: fix a typo (Intial -> Initial)
Bug: T201491
Change-Id: I28c3707f2c0b567817b60e189758eb6355cc8c20
2020-12-08 08:36:08 +00:00
Translation updater bot
b92122e06e Localisation updates from https://translatewiki.net.
Change-Id: I24a26b481109f39c21ef58d82bc18f86a1f7e76b
2020-12-08 08:19:52 +01:00
Petr Pchelko
9872b627ff Article:view - always try using ParserCache for old revisions.
Bug: T268075
Change-Id: Ie318a6275c1fb5aedff830b72ee838def815e190
2020-12-07 15:18:08 -06:00
jenkins-bot
57a7e4e117 Merge "Re-Apply "Extract helper classes from PageHTMLHandler"" 2020-12-07 17:37:41 +00:00
jenkins-bot
d13ca2b93a Merge "Fixed mixed escaping in Language::translateBlockExpiry" 2020-12-07 17:17:32 +00:00
jenkins-bot
0f5daa3a41 Merge "Suppress taint-check in UploadForm" 2020-12-07 17:17:25 +00:00
Daniel Kinzler
3bc61324b9 Re-Apply "Extract helper classes from PageHTMLHandler"
This reverts commit d51a697e13.

Reason for revert: Let's try this again...

Change-Id: Ie0218adff95576c972ff4c1d51cadd02f41eba3e
2020-12-07 16:59:29 +00:00
jenkins-bot
743e3a1a8c Merge "Rework message handling on Special:WhatLinksHere" 2020-12-07 16:57:43 +00:00
jenkins-bot
c4b7f10528 Merge "Explicit parse message on Special:Version" 2020-12-07 16:49:43 +00:00
jenkins-bot
d043cc3177 Merge "Pass escaped html to LogFormatter::makePageLink for sanity" 2020-12-07 16:49:37 +00:00
jenkins-bot
314c88dc68 Merge "Use Html::element in ChangeListSpecialPage for sanity" 2020-12-07 16:49:30 +00:00
jenkins-bot
1ade6eca72 Merge "Use Xml::element in SpecialUserrights for sanity" 2020-12-07 16:45:20 +00:00
jenkins-bot
cde402a10d Merge "build: Updating mediawiki/mediawiki-codesniffer to 34.0.0" 2020-12-07 16:40:54 +00:00
Umherirrender
3857415e7e Pass escaped html to LogFormatter::makePageLink for sanity
Bug: T268938
Change-Id: Ib6847d56eb2d1c19f695f50327c9a58d8d8603da
2020-12-07 16:04:57 +00:00
Umherirrender
49e7981cc2 Fixed mixed escaping in Language::translateBlockExpiry
Bug: T268938
Change-Id: I44c12b9676610e596254b68b829ac62bc109cdde
2020-12-07 15:40:26 +01:00
Umherirrender
147f8b21d0 Use Xml::element in SpecialUserrights for sanity
Bug: T268917
Change-Id: Iac6d911d2c2b1105f3f1fd490019bdce165ec30e
2020-12-07 15:11:55 +01:00
Umherirrender
e9cfc988c3 Use Html::element in ChangeListSpecialPage for sanity
Bug: T268894
Change-Id: I073e91b66504271ba928b0075211036a09a27728
2020-12-07 15:04:55 +01:00
jenkins-bot
66e41027b1 Merge "Revert "Hard-deprecate all public property access on CacheTime and ParserOutput."" 2020-12-07 14:02:05 +00:00
Umherirrender
2579ca623a build: Updating mediawiki/mediawiki-codesniffer to 34.0.0
Change-Id: I2fb18ddd4c144655a665792901e59f88bcd906dc
2020-12-07 14:55:24 +01:00
Translation updater bot
38ee9bc7bf Localisation updates from https://translatewiki.net.
Change-Id: I6711bd0d408ee5f85759799ee66e5d67da926f25
2020-12-07 08:41:29 +01:00
Ammar Abdulhamid
cb77a1121f Rename all PG logging indexes
with exception of logging_actor_time which does not exist
in MySQL and thus will be removed in migrating the table to
abstract schema

New names unify the indexes with MySQL/SQLite names

Bug: T164898
Change-Id: I90bec59b86cdd527d77cc6084056ab4267cc5b40
2020-12-07 08:00:47 +01:00
Reedy
8e09dbe83a Split dropping of image.img_user_timestamp
Splits the dropping of image.img_user_timestamp (which was added
in MW 1.29) from patch-drop-image-img_user_timestamp.sql because
if you're upgrading from a much older MW version, the index may
not exist, and will cause the whole
patch-drop-image-img_user_timestamp.sql patch to fail from the
index not existing.

It probably should have been added by the ifTableNotExists/actor
entry with patch-image-user-index-2.sql (as actor wasn't added
until 1.31)...

Also fix up some comments relating to the patch filenames I
missed whilst I split them in T257407.

Bug: T267543
Change-Id: I3cdecf6df459d44b4d51a9ad9e1ff00997ff0c02
2020-12-07 03:35:50 +00:00
Ostrzyciel
b25d48ea03 Add hook to Linker::generateRollback()
Add a hook that would allow extensions to modify the default
rollback link in MW's interface.

Bug: T252518
Change-Id: Ia6920e601a4b9433f4083a386ff35f5478dc4e3c
2020-12-06 20:44:34 +01:00
jenkins-bot
4f8dfb251e Merge "Fallback services in SpecialContributions" 2020-12-06 18:18:37 +00:00
Umherirrender
98acc17f43 Fallback services in SpecialContributions
Support extensions extends this class

Change-Id: I43354583ec3ab358fd84de535902dedf38f3befd
2020-12-06 12:59:41 +01:00
jenkins-bot
3825c4d04d Merge "InterwikiLookupAdapter: Move code out of loop that doesn't vary based on loop variable" 2020-12-06 02:12:28 +00:00
jenkins-bot
a53268d9ca Merge "Fix English/*nix specific error messages in FSFileBackend" 2020-12-06 01:37:56 +00:00
Reedy
b3731e119c InterwikiLookupAdapter: Move code out of loop that doesn't vary based on loop variable
Change-Id: If090a4603a22166b0e907ba2163f3bf68ae1e3a3
2020-12-06 00:22:42 +00:00
jenkins-bot
8a6f33ac83 Merge "PageRestrictions: Remove unreachable logic" 2020-12-05 19:36:56 +00:00
jenkins-bot
b5c0d82621 Merge "Rest EntryPoint: Use ContentLanguage service" 2020-12-05 19:36:50 +00:00
Ammar Abdulhamid
e3c542998b Remove reference to deleted file
There's no file 'updaters.inc' (I guess this is now 'update.php')
but probably this class has substantially changed that it no longer
makes sense to reference the now non-existing file.

Change-Id: Ie1ffbc3a824d921f93d99881cd85f40a9aba7725
2020-12-05 06:25:46 +01:00
Ammar Abdulhamid
0e436471fc Rest EntryPoint: Use ContentLanguage service
$wgContLang has been deprecated

Change-Id: Ib4202e08d486c6a77db53a05fab9cd981c9ee56a
2020-12-05 04:30:45 +00:00
Ammar Abdulhamid
e2a5c3d370 PageRestrictions: Remove unreachable logic
On another look after I242b1e7, I realized that this method will
not return null and the null-coalescing is effectively unreachable.
It will never be executed.

The property can indeed be null before the method is called, but
thereafter it can only be Title instance or false. It will only
resets to null after the object destruction.

Change-Id: I19b47affba49cded537011b6456d710bd55494b1
2020-12-05 05:25:08 +01:00
Reedy
76249a28d2 Validate max length of bp_restrictions and bp_grants
Bug: T260631
Bug: T260633
Change-Id: Ifc35e01c711f1394f45748f693e7a46695b2d471
2020-12-05 02:10:01 +00:00
jenkins-bot
94790a79b9 Merge "The mediawiki.skinning.content.externallinks styles are moved into ResourceLoaderSkinModule" 2020-12-04 22:39:11 +00:00
Thalia
9ffe5a880b Clarify uses of NamespaceInfo::hasSubpages in documentation
Clarify that this method does not refer to SpecialPage subpage
parameters.

Change-Id: Ief54be2e83d4b09b265754849db487923d872939
2020-12-04 20:37:28 +00:00
jenkins-bot
d321ccefad Merge "PageRestriction: Fix return type doc" 2020-12-04 20:35:09 +00:00
jenkins-bot
9b16a2e3c7 Merge "Stop ignoring paragraph and region separators in DjVu file OCR text layer" 2020-12-04 19:06:12 +00:00
Daniel Kinzler
48172f794d Revert "Hard-deprecate all public property access on CacheTime and ParserOutput."
This reverts commit b1a30eb0c4.

Reason for revert: T269396

Bug: T269396
Change-Id: I374ca13ccc30418b8fe3bf98f5090f7643aac4d7
2020-12-04 11:47:55 +00:00
Ammar Abdulhamid
6c8ff681c4 PageRestriction: Fix return type doc
Change-Id: I242b1e78be47582646656c5e30d00d0344e96b94
2020-12-04 08:33:26 +01:00
Translation updater bot
1ecb5899f0 Localisation updates from https://translatewiki.net.
Change-Id: Ie41a51a657a1dfa9d28095e457da5622a96f2cf6
2020-12-04 08:31:49 +01:00