The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamName
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.ParamNameNoMatch
* MediaWiki.FunctionComment.Missing.Protected
* MediaWiki.FunctionComment.Missing.Public
* MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
Change-Id: I45ddf6c4adfd3ac81c1da5b3159f1af267b2dad8
If the form was just viewed, the empty string would bypass validation
and be passed to onSubmit, and $this->title would end up as null. Avoid
that by specially checking for the empty string, and harden in execute()
by checking for an instanceof Title rather than !== false.
Change-Id: Ib43c6ff4a64f6a1d9ad5fc0390d7bc6fe5b07cb4
I also changed the style of the output to make it more consistent with the OOjs UI theme.
Bug: T147046
Depends-On: I9bc930e5dca557571b4658444fea6aec59c5797a
Change-Id: I0a2aaf7b94c37b1408311b2244c308a3f76a33eb
The main goal of this rewrite is to not use or mess with any global
state.
The ParserGetVariableValueTs and ParserGetVariableValueVarCache hooks
were replaced with setting the timestamp via
ParserOptions::setTimestamp(). This also means that {{#time:...}} from
ParserFunctions extension will correctly use the page's timestamp
instead of the current one.
Disabling tidy is also done using ParserOptions instead of changing
global state.
Change-Id: Ib2810aa5891c57831380a1a4718656cc09932b96
The autocomplete search allows special pages to define the list of
subpages to be excepted. Fill up the function to show auto suggestion
for subpages of Special:CiteThisPage
Change-Id: I2426f21358644d2e6212fb239b2a3ad56fb1398f