X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FEditPage.php;h=745f8deb6ee3ffcb3a5994f74c8903807ff462a3;hb=68a8243d4910e140b0f1f06e4e93b3504cf9b723;hp=82ddee019cf9c0d89999d043a207a0a5991334af;hpb=507024c9d08b4547708f231934be2901bf450a42;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index 82ddee019c..745f8deb6e 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2326,9 +2326,12 @@ class EditPage { } function setHeaders() { - global $wgOut, $wgUser, $wgAjaxEditStash; + global $wgOut, $wgUser, $wgAjaxEditStash, $wgCookieSetOnAutoblock; $wgOut->addModules( 'mediawiki.action.edit' ); + if ( $wgCookieSetOnAutoblock === true ) { + $wgOut->addModules( 'mediawiki.user.blockcookie' ); + } $wgOut->addModuleStyles( 'mediawiki.action.edit.styles' ); if ( $wgUser->getOption( 'showtoolbar' ) ) { @@ -4068,7 +4071,7 @@ HTML /** * Returns an array of html code of the following buttons: - * save, diff, preview and live + * save, diff and preview * * @param int $tabindex Current tabindex * @@ -4102,7 +4105,6 @@ HTML ] + Linker::tooltipAndAccesskeyAttribs( 'preview' ); $buttons['preview'] = Html::submitButton( $this->context->msg( 'showpreview' )->text(), $attribs ); - $buttons['live'] = ''; $attribs = [ 'id' => 'wpDiff',