diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index cfd57541bbb..0860128838c 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -1,4 +1,22 @@ true, 'injectTOC' => true, 'enableSectionEditLinks' => true, - 'skin' => null, 'userLang' => null, + 'skin' => null, 'unwrap' => false, - 'deduplicateStyles' => true, 'wrapperDivClass' => $this->getWrapperDivClass(), + 'deduplicateStyles' => true, + 'absoluteURLs' => false, 'includeDebugInfo' => false, 'bodyContentOnly' => true, ]; @@ -545,7 +555,7 @@ class ParserOutput extends CacheTime implements ContentMetadataCollector { } // Expand all relative URLs - if ( ( $options['absoluteURLs'] ?? false ) && $text ) { + if ( $options['absoluteURLs'] && $text ) { $text = Linker::expandLocalLinks( $text ); }