X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FEditPage.php;h=4f6b7b4bbbaa1448bd418cb40214fe85f8e9670e;hb=4816ed72995acb2f849db10d7a552acc613044a9;hp=a1d9ae82d5816b094adffa1f9123387cb572d5b3;hpb=dd942172f81013f0866370b2acb1eee829de19d3;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index a1d9ae82d5..4f6b7b4bbb 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -504,16 +504,6 @@ class EditPage { } } - /** - * Check if the edit page is using OOUI controls - * @return bool Always true - * @deprecated since 1.30 - */ - public function isOouiEnabled() { - wfDeprecated( __METHOD__, '1.30' ); - return true; - } - /** * Returns if the given content model is editable. * @@ -3893,6 +3883,9 @@ ERROR; $previewHTML = $parserResult['html']; $this->mParserOutput = $parserOutput; $out->addParserOutputMetadata( $parserOutput ); + if ( $out->userCanPreview() ) { + $out->addContentOverride( $this->getTitle(), $content ); + } if ( count( $parserOutput->getWarnings() ) ) { $note .= "\n\n" . implode( "\n\n", $parserOutput->getWarnings() );