mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-15 03:35:58 +00:00
Merge "Don't add logging-related form inputs if not required"
This commit is contained in:
commit
c0967dbe3a
|
@ -200,7 +200,8 @@ class WikiEditorHooks {
|
|||
* @param OutputPage $outputPage object.
|
||||
*/
|
||||
public static function editPageShowEditFormFields( EditPage $editPage, OutputPage $outputPage ) {
|
||||
if ( $editPage->contentModel !== CONTENT_MODEL_WIKITEXT ) {
|
||||
if ( $editPage->contentModel !== CONTENT_MODEL_WIKITEXT
|
||||
|| !ExtensionRegistry::getInstance()->isLoaded( 'EventLogging' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue