* (bug 17585) Hide legend on Special:Specialpages from non-privileged users
* (bug 15876) Users with 'reset-passwords' right can change the passwords of
other users.
-
+* Add an ID if 'missingsummary' is triggered to allow styling of the summary
+ line
=== Bug fixes in 1.15 ===
* (bug 16968) Special:Upload no longer throws useless warnings.
* (bug 17000) Special:RevisionDelete now checks if the database is locked
if ( $this->section == 'new' ) {
$commentsubject = '';
if ( !$wgRequest->getBool( 'nosummary' ) ) {
+ # Add an ID if 'missingsummary' is triggered to allow styling of the summary line
+ $summaryMissedID = $this->missingSummary ? ' mw-summarymissed' : '';
+
$commentsubject =
Xml::tags( 'label', array( 'for' => 'wpSummary' ), $subject );
$commentsubject =
- Xml::tags( 'span', array( 'id' => 'wpSummaryLabel' ), $commentsubject );
+ Xml::tags( 'span', array( 'id' => "wpSummaryLabel$summaryMissedID" ), $commentsubject );
$commentsubject .= ' ';
$commentsubject .= Xml::input( 'wpSummary',
60,
} else {
$commentsubject = '';
+ # Add an ID if 'missingsummary' is triggered to allow styling of the summary line
+ $summaryMissedID = $this->missingSummary ? ' mw-summarymissed' : '';
+
$editsummary = Xml::tags( 'label', array( 'for' => 'wpSummary' ), $summary );
- $editsummary =
- Xml::tags( 'span', array( 'id' => 'wpSummaryLabel' ), $editsummary ) . ' ';
-
+ $editsummary = Xml::tags( 'span', array( 'id' => "wpSummaryLabel$summaryMissedID" ), $editsummary ) . ' ';
+
$editsummary .= Xml::input( 'wpSummary',
60,
$summarytext,
'maxlength' => '200',
'tabindex' => '1'
) );
-
+
// No idea where this is closed.
$editsummary = Xml::openElement( 'div', array( 'class' => 'editOptions' ) )
. $editsummary . '<br/>';
-
+
$summarypreview = '';
if ( $summarytext && $this->preview ) {
$summarypreview =