Commit graph

66366 commits

Author SHA1 Message Date
lens0021
8eced80e24
docs: LogFormatter: $plaintext and $irctext are booleans
It seems all references to them assume the values as booleans.
Code search: https://codesearch.wmcloud.org/deployed/?q=%5C%24this-%3E(plaintext%7Circtext)&i=nope&files=LogFormatter(test)%3F%5C.php&excludeFiles=&repos=

Change-Id: I9bde1f7b1cac0ba9c0b002fd1b57a4407a4912ce
2021-09-25 03:37:43 +09:00
jenkins-bot
47d31038eb Merge "Allow skipping $wgMaxImageArea check" 2021-09-24 17:35:49 +00:00
Petr Pchelko
ee4e19498f MovePage: don't create a recent change for a redirect
Follow-up on e33f6b4b8

Bug: T291677
Change-Id: Ibea22700f5e5d2a8a8bd5995474b45ab847d2ba4
2021-09-23 19:58:04 -07:00
Umherirrender
769bdbf091 docs: Fix nullable documentation for class properties
Change-Id: I6d0577124d852103f485ffdc819876a13f6641c3
2021-09-24 00:54:53 +00:00
jenkins-bot
e532630b11 Merge "mediawiki.util: Update addPortletLink to support 'text-wrapper' option" 2021-09-23 22:47:39 +00:00
Kunal Mehta
a7c90ecc5f Allow skipping $wgMaxImageArea check
If $wgMaxImageArea is false, MediaWiki will no longer check if the image
fits within that area before trying to scale it. Extensions can still
use the BitmapHandlerCheckImageArea hook to override it.

This is primarily useful when using an external scaler like Wikimedia
does with Thumbor, which decides whether it can scale images by using a
timeout rather than based on size.

Codesearch indicates that the only extension checking this setting is
PagedTiffHandler, which will be updated in Iefa67321d07f7.

Bug: T291014
Depends-On: Iefa67321d07f79d982388231e02e87e2f18aed40
Change-Id: Id10173bbddb32bc70e036f426369cfbea52cecf4
2021-09-23 15:33:37 -07:00
jenkins-bot
93e2497411 Merge "Fix code example in IDatabase::makeList() documentation" 2021-09-23 22:09:40 +00:00
jenkins-bot
62d9c60273 Merge "Detect and monitor against multiple Parser invocation during edit requests" 2021-09-23 22:01:43 +00:00
Cindy Cicalese
eed48e402b Detect and monitor against multiple Parser invocation during edit requests
Bug: T288707
Change-Id: I0cca8f9bcf1d6e964b8b06c0c4490e83f4fb1de5
2021-09-23 16:12:40 -05:00
bwang
d4d7635979 mediawiki.util: Update addPortletLink to support 'text-wrapper' option
- Add Skin::getOptions and Skin::getPortletLinkOptions, which are used
  to provide skin options to mw.util.
- Add SkinFactory::getSkinOptions, which is used by
  Skin::getPortletLinkOptions.

Depends-On: Ib23360e3439abc828404c1de8e0906915ee7d8b6
Bug: T289163
Change-Id: I801e7d583cb0b0c7da51f4da503268be736bb60c
2021-09-23 19:03:36 +01:00
Ammarpad
d93f45b034 Remove deprecated skin methods 3
* getAllowedSkins()
 * makeVariablesScript()
 * getSkinNames()

Bug: T287776
Change-Id: I518cabdf11fb6c6d317ca70b58418ef683a8baaa
2021-09-23 08:54:45 -07:00
jenkins-bot
292fa3ae54 Merge "Remove deprecated skin methods 2" 2021-09-23 15:19:43 +00:00
jenkins-bot
eddaa60142 Merge "Expand set of data returned by SkinTemplate::getTemplateData" 2021-09-23 15:19:38 +00:00
Lucas Werkmeister
9aab315946 Fix code example in IDatabase::makeList() documentation
The example had two syntax errors and was also misleading about the
quoting of input values.

Change-Id: Ib553a47fd49fdafe7ac159a89254498685f50cd4
2021-09-23 15:59:37 +02:00
Translation updater bot
e343ada8ab Localisation updates from https://translatewiki.net.
Change-Id: Id98a0c6fafa35d1134b5e990ad2e27d22749a149
2021-09-23 12:11:40 +02:00
Ammarpad
3ef920574e Expand set of data returned by SkinTemplate::getTemplateData
Added 4 boolean values
 * is-anon
 * is-article
 * is-mainpage
 * is-specialpage

Bug: T289221
Change-Id: Ieb5398c3505602dfbf77d97f24f3d19f703924b8
2021-09-23 07:23:05 +01:00
Ammarpad
4583cf0e0b Remove deprecated skin methods 2
* getLogo()
* subPageSubtitle()
* getSearchLink()
* mainPageLink()

Bug: T287777
Change-Id: I67108ef9c7bc608d767456723b9c7e078b317e41
2021-09-23 07:04:49 +01:00
jenkins-bot
c5d1233cd2 Merge "OutputHandler: Omit debug() call for common case" 2021-09-23 03:49:11 +00:00
jenkins-bot
7e6156c16c Merge "Use PageUpdater's fluent interface as in some parts of our codebase" 2021-09-23 00:30:38 +00:00
Derick Alangi
2432cc2bb4 Use PageUpdater's fluent interface as in some parts of our codebase
Some methods in the PageUpdater's class implements the fluent interface
design pattern. Use the fluent interface where need be.

Change-Id: If76a4b8c5070c20ed40038a4ee78e2d677de5180
2021-09-23 00:31:33 +01:00
Timo Tijhof
faf2233cf4 OutputHandler: Omit debug() call for common case
Folllows-up I4c2d478b492ff17.

* MW_ENTRY_POINT can only be undefined in very early WebStart/Setup
  code. In code outside those files, and by the time MW_SETUP_CALLBACK
  OutputHandler run, this is always filled in to at least "unknown".

* Inline extra code to the less common conditional block.

Bug: T290776
Change-Id: Ia7fa6cb0ff156ed6cb0212443ac3a97c91982d4b
2021-09-23 00:19:57 +01:00
Aaron Schulz
64a4d6e74f Fix $wgDisableOutputCompression and $phase checks in OutputHandler
The config variable check from 6c81f0b868d2 needed a negation.

The phase check from 374bdc0f7c should have been a conjuction.

Also add some debug logging statements.

Follow-up to 6c81f0b868d2 and 374bdc0f7c.

Bug: T290776
Change-Id: I4c2d478b492ff17bdad76bf75119b5926f7917e8
2021-09-22 13:41:47 -07:00
jenkins-bot
b2a2022fd5 Merge "Remove deprecated skin methods (1)" 2021-09-22 19:34:20 +00:00
Ammarpad
3bd39c50a6 Remove deprecated skin methods (1)
* privacyLink()
* aboutLink()
* disclaimerLink()
* makeUrl()
* getIndicatorsHTML()

Bug: T287777
Change-Id: Ie04e4c4e063d7f61653e55a914ed7a623efda550
2021-09-22 19:06:48 +01:00
Alexander Vorwerk
1b06034ca6 Hard deprecate SkinTemplate::getPersonalToolsList()
deprecated since 1.35 and unused

Bug: T291576
Change-Id: Ifcfd70b71060b7d3cf32fcb9c3bcad6f7bcfabff
2021-09-22 19:59:44 +02:00
jenkins-bot
43f1dc2095 Merge "Hard deprecate Skin::getSkinStylePath" 2021-09-22 17:54:28 +00:00
Ammarpad
69be37d1be Hard deprecate Skin::getSkinStylePath
Bug: T270754
Change-Id: I128cc73131a0d4f3858c1b4f350e1d10e99726b3
2021-09-22 18:27:32 +01:00
Reedy
0eb23b5cc9 MysqlUpdater: Add updatelog entries for dropDefault
Currently, this update is run every time update.php is run,
because mysqli usually returns ""

Change-Id: I9f862138b5e024798b27cfd4814810cbca43ae38
2021-09-22 16:08:27 +00:00
Martin Urbanec
408999928d
HTMLTitleTextField: Remove B&C code
Bug: T288181
Change-Id: Iec9225d0f0fe47dd972f6c302ca803e65b8232a7
2021-09-22 00:48:59 -07:00
DannyS712
db49026745 ActivityUpdateJob: accept PageReference
For both LinkTarget and PageReference, just extract
namespace and dbkey and pass those in the array
of parameters to Job::__construct().

Allows a bunch of simplification to WatchedItemStore.

Bug: T291531
Change-Id: Id150d0c62af38d4b3d17e5698866127c6e04717e
2021-09-21 23:30:51 +00:00
DannyS712
20aa78f213 Drop deprecated BeforeResetNotificationTimestamp hook
Deprecated in 1.37 and unused

Allows a bunch of cleanup for WatchedItemStore.

Bug: T271715
Change-Id: I328cf49c3e85da2069b620f8c63670d93608a784
2021-09-21 23:09:18 +00:00
jenkins-bot
44c0eb82b3 Merge "API: Fix null docs in ApiBase" 2021-09-21 20:32:58 +00:00
Umherirrender
e27cb5e468 API: Fix null docs in ApiBase
Change-Id: I63399b1ee2f2c8d6f7f6a5781a5a61de5d21ede8
2021-09-21 17:57:56 +00:00
jenkins-bot
600950aa1a Merge "Installer: Add $wgLocaltimezone to LocalSettings template" 2021-09-21 15:43:14 +00:00
jenkins-bot
e89d5a46e1 Merge "Drop the ArticleUndeleteLogEntry hook" 2021-09-21 14:00:15 +00:00
Translation updater bot
629c5e28ac Localisation updates from https://translatewiki.net.
Change-Id: I0a197c46773c710ff0bb906cf639f67d510a9f19
2021-09-21 07:56:35 +02:00
jenkins-bot
88427bedac Merge "profiler: Fixup broken logic for the new 'running' option" 2021-09-21 04:42:58 +00:00
jenkins-bot
92081a0615 Merge "skins: Correctly index the copyright icon, caused failure in MF" 2021-09-21 01:46:56 +00:00
jenkins-bot
b69720e440 Merge "file: Fix doc of LocalRepo::locked" 2021-09-21 00:18:21 +00:00
jenkins-bot
0286d44595 Merge "Escape return of Language::formatNum" 2021-09-21 00:10:06 +00:00
jenkins-bot
b0e29e6288 Merge "EmailNotification: fix misplaced tab" 2021-09-20 23:03:29 +00:00
jenkins-bot
02b29b5f73 Merge "Search data should support multiple searches" 2021-09-20 22:47:47 +00:00
Umherirrender
89bd837f92 Escape return of Language::formatNum
Also fix docs of ImageListPager::formatValue:
There is no int or Message type, the int is converted to string by
formatNum() and the Message by escaped()

Change-Id: I7cbff8644cd5a92ff2f459adb987a3c076ad648f
2021-09-21 00:38:01 +02:00
DannyS712
73c7d7fea9 EmailNotification: fix misplaced tab
Change-Id: I2479e596f7c93d4527bb8db800e570d15bccce03
2021-09-20 22:25:20 +00:00
Derick Alangi
caf0591902 skins: Correctly index the copyright icon, caused failure in MF
On mobile and possibly desktop via (`$wgFooterIcons`), trying to acccess
the copyright icon returns an array instead of a string. An exception is thrown
since the indexing is done on a string.

Throwing an error: TypeError: Return value of BaseTemplate::getCopyrightIconHTML()
must be of the type string, array returned.

The returned array looks like this (when I test):

["copyright"]=> array(1) {
    ["copyright"]=> array(3) {
        ["url"]=> string(47) "https://creativecommons.org/licenses/by-sa/4.0/"
        ["src"]=> string(44) "/core/resources/assets/licenses/cc-by-sa.png"
        ["alt"]=> string(39) "Creative Commons Attribution-ShareAlike"
    }
}

So getting the icon, we need to index src, hence the patch. Let me know
if I'm wrong here. Also, have a look [[Manual:$wgFooterIcons]], you'll see that
default value is an empty array instead of a string:

$wgFooterIcons = [
	"copyright" => [
		"copyright" => [],
	],
]

This made MF to not be able to load locally and the patch fixes it.

In addition, we can just pass `$config` as we have above rather than request
the for it again and again.

Bug: T291325
Change-Id: Icb42342e83f2bc61922ab991bcec66aa5e7b5646
2021-09-20 23:19:23 +01:00
jdlrobson
22af2acf88 Search data should support multiple searches
Bug: T289724
Change-Id: I2f96cb0319e5e200e7f6bbe44dc58f43eb9d8e63
2021-09-20 21:55:10 +00:00
Umherirrender
bee7d72a09 file: Fix doc of LocalRepo::locked
It is used as int

Change-Id: Ia4613ae6232364b99ae793bcf2ba21694f4e573a
2021-09-20 23:26:42 +02:00
jenkins-bot
3d9a1a158c Merge "objectcache: fix phpstorm warnings about BagOStuff::* constants and unused vars" 2021-09-20 19:24:56 +00:00
jenkins-bot
8ee86f1734 Merge "Avoid using ContentHandler::getContentText()" 2021-09-20 19:14:10 +00:00
jenkins-bot
b80e8a22b5 Merge "ApiParse: Support hidden skins" 2021-09-20 15:57:26 +00:00