Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1343,10 +1343,13 @@ |
1344 | 1344 | if ( $this->section == 'new' ) { |
1345 | 1345 | $commentsubject = ''; |
1346 | 1346 | if ( !$wgRequest->getBool( 'nosummary' ) ) { |
| 1347 | + # Add an ID if 'missingsummary' is triggered to allow styling of the summary line |
| 1348 | + $summaryMissedID = $this->missingSummary ? ' mw-summarymissed' : ''; |
| 1349 | + |
1347 | 1350 | $commentsubject = |
1348 | 1351 | Xml::tags( 'label', array( 'for' => 'wpSummary' ), $subject ); |
1349 | 1352 | $commentsubject = |
1350 | | - Xml::tags( 'span', array( 'id' => 'wpSummaryLabel' ), $commentsubject ); |
| 1353 | + Xml::tags( 'span', array( 'id' => "wpSummaryLabel$summaryMissedID" ), $commentsubject ); |
1351 | 1354 | $commentsubject .= ' '; |
1352 | 1355 | $commentsubject .= Xml::input( 'wpSummary', |
1353 | 1356 | 60, |
— | — | @@ -1365,10 +1368,12 @@ |
1366 | 1369 | } else { |
1367 | 1370 | $commentsubject = ''; |
1368 | 1371 | |
| 1372 | + # Add an ID if 'missingsummary' is triggered to allow styling of the summary line |
| 1373 | + $summaryMissedID = $this->missingSummary ? ' mw-summarymissed' : ''; |
| 1374 | + |
1369 | 1375 | $editsummary = Xml::tags( 'label', array( 'for' => 'wpSummary' ), $summary ); |
1370 | | - $editsummary = |
1371 | | - Xml::tags( 'span', array( 'id' => 'wpSummaryLabel' ), $editsummary ) . ' '; |
1372 | | - |
| 1376 | + $editsummary = Xml::tags( 'span', array( 'id' => "wpSummaryLabel$summaryMissedID" ), $editsummary ) . ' '; |
| 1377 | + |
1373 | 1378 | $editsummary .= Xml::input( 'wpSummary', |
1374 | 1379 | 60, |
1375 | 1380 | $summarytext, |
— | — | @@ -1377,11 +1382,11 @@ |
1378 | 1383 | 'maxlength' => '200', |
1379 | 1384 | 'tabindex' => '1' |
1380 | 1385 | ) ); |
1381 | | - |
| 1386 | + |
1382 | 1387 | // No idea where this is closed. |
1383 | 1388 | $editsummary = Xml::openElement( 'div', array( 'class' => 'editOptions' ) ) |
1384 | 1389 | . $editsummary . '<br/>'; |
1385 | | - |
| 1390 | + |
1386 | 1391 | $summarypreview = ''; |
1387 | 1392 | if ( $summarytext && $this->preview ) { |
1388 | 1393 | $summarypreview = |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -115,7 +115,8 @@ |
116 | 116 | * (bug 17585) Hide legend on Special:Specialpages from non-privileged users |
117 | 117 | * (bug 15876) Users with 'reset-passwords' right can change the passwords of |
118 | 118 | other users. |
119 | | - |
| 119 | +* Add an ID if 'missingsummary' is triggered to allow styling of the summary |
| 120 | + line |
120 | 121 | === Bug fixes in 1.15 === |
121 | 122 | * (bug 16968) Special:Upload no longer throws useless warnings. |
122 | 123 | * (bug 17000) Special:RevisionDelete now checks if the database is locked |