X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FEditPage.php;h=9182300fcf35643a762a98e7cc27fbdd5ed5889e;hb=bd980451109fb588c30aa5059ddada5ea4f6492e;hp=c346b750d9a8c0302af2af28f390b574c3718b08;hpb=54c93f1d384cd5accd2db2ebbb911e4d627c2980;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index c346b750d9..9182300fcf 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -25,7 +25,7 @@ use MediaWiki\EditPage\TextboxBuilder; use MediaWiki\EditPage\TextConflictHelper; use MediaWiki\Logger\LoggerFactory; use MediaWiki\MediaWikiServices; -use MediaWiki\Storage\RevisionRecord; +use MediaWiki\Revision\RevisionRecord; use Wikimedia\ScopedCallback; /** @@ -1156,7 +1156,7 @@ class EditPage { $out->showErrorPage( 'modeleditnotsupported-title', 'modeleditnotsupported-text', - $modelName + [ $modelName ] ); return false; } @@ -1188,7 +1188,7 @@ class EditPage { /** * @param Content|null $def_content The default value to return * - * @return Content|null Content on success, $def_content for invalid sections + * @return Content|false|null Content on success, $def_content for invalid sections * * @since 1.21 */ @@ -2742,7 +2742,7 @@ ERROR; * content. * * @param Content|null|bool|string $content - * @return string The editable text form of the content. + * @return string|false|null The editable text form of the content. * * @throws MWException If $content is not an instance of TextContent and * $this->allowNonTextContent is not true. @@ -4045,11 +4045,11 @@ ERROR; if ( $this->isConflict ) { $conflict = Html::rawElement( - 'h2', [ 'id' => 'mw-previewconflict' ], + 'div', [ 'id' => 'mw-previewconflict', 'class' => 'warningbox' ], $this->context->msg( 'previewconflict' )->escaped() ); } else { - $conflict = '
'; + $conflict = ''; } $previewhead = Html::rawElement( @@ -4058,7 +4058,9 @@ ERROR; 'h2', [ 'id' => 'mw-previewheader' ], $this->context->msg( 'preview' )->escaped() ) . - $out->parseAsInterface( $note ) . $conflict + Html::rawElement( 'div', [ 'class' => 'warningbox' ], + $out->parseAsInterface( $note ) + ) . $conflict ); $pageViewLang = $this->mTitle->getPageViewLanguage();