X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FEditPage.php;h=7d19e94ad749525cbb02de4d375edb54c556f36e;hb=078dbb8e566691463276fc34c47cdb1fe676200b;hp=7a5832609c0114348baf5b1a42f34c6a25b5c3e3;hpb=6e7c7f9d764f7df09175daa1ec54e4d15109a8c3;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/EditPage.php b/includes/EditPage.php
index 7a5832609c..7d19e94ad7 100644
--- a/includes/EditPage.php
+++ b/includes/EditPage.php
@@ -3058,6 +3058,7 @@ class EditPage {
*/
protected function showSummaryInput( $isSubjectPreview, $summary = "" ) {
global $wgOut;
+
# Add a class if 'missingsummary' is triggered to allow styling of the summary line
$summaryClass = $this->missingSummary ? 'mw-summarymissed' : 'mw-summary';
if ( $isSubjectPreview ) {
@@ -3506,12 +3507,12 @@ HTML
$message = $this->context->msg( 'edithelppage' )->inContentLanguage()->text();
$edithelpurl = Skin::makeInternalOrExternalUrl( $message );
- $attrs = [
- 'target' => 'helpwindow',
- 'href' => $edithelpurl,
- ];
- $edithelp = Html::linkButton( $this->context->msg( 'edithelp' )->text(),
- $attrs, [ 'mw-ui-quiet' ] ) .
+ $edithelp =
+ Html::linkButton(
+ $this->context->msg( 'edithelp' )->text(),
+ [ 'target' => 'helpwindow', 'href' => $edithelpurl ],
+ [ 'mw-ui-quiet' ]
+ ) .
$this->context->msg( 'word-separator' )->escaped() .
$this->context->msg( 'newwindow' )->parse();
@@ -3571,18 +3572,16 @@ HTML
*/
public function getCancelLink() {
$cancelParams = [];
- $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
if ( !$this->isConflict && $this->oldid > 0 ) {
$cancelParams['oldid'] = $this->oldid;
} elseif ( $this->getContextTitle()->isRedirect() ) {
$cancelParams['redirect'] = 'no';
}
- $attrs = [ 'id' => 'mw-editform-cancel' ];
- return $linkRenderer->makeKnownLink(
+ return MediaWikiServices::getInstance()->getLinkRenderer()->makeKnownLink(
$this->getContextTitle(),
new HtmlArmor( $this->context->msg( 'cancel' )->parse() ),
- Html::buttonAttributes( $attrs, [ 'mw-ui-quiet' ] ),
+ Html::buttonAttributes( [ 'id' => 'mw-editform-cancel' ], [ 'mw-ui-quiet' ] ),
$cancelParams
);
}
@@ -4006,72 +4005,114 @@ HTML
return $toolbar;
}
+ /**
+ * Return an array of checkbox definitions.
+ *
+ * Array keys correspond to the `` 'name' attribute to use for each checkbox.
+ *
+ * Array values are associative arrays with the following keys:
+ * - 'label-message' (required): message for label text
+ * - 'id' (required): 'id' attribute for the ``
+ * - 'default' (required): default checkedness (true or false)
+ * - 'title-message' (optional): used to generate 'title' attribute for the `