Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -149,7 +149,9 @@ |
150 | 150 | * Added $wgUserrightsInterwikiDelimiter to allow changing the delimiter |
151 | 151 | used in Special:UserRights to denote the user should be searched for |
152 | 152 | on a different database |
153 | | - |
| 153 | +* Add a class if 'missingsummary' is triggered to allow styling of the summary |
| 154 | + line |
| 155 | + |
154 | 156 | === Bug fixes in 1.15 === |
155 | 157 | * (bug 16968) Special:Upload no longer throws useless warnings. |
156 | 158 | * (bug 17000) Special:RevisionDelete now checks if the database is locked |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1363,10 +1363,14 @@ |
1364 | 1364 | if ( $this->section == 'new' ) { |
1365 | 1365 | $commentsubject = ''; |
1366 | 1366 | if ( !$wgRequest->getBool( 'nosummary' ) ) { |
| 1367 | + # Add a class if 'missingsummary' is triggered to allow styling of the summary line |
| 1368 | + $summaryClass = $this->missingSummary ? 'mw-summarymissed' : 'mw-summary'; |
| 1369 | + |
1367 | 1370 | $commentsubject = |
1368 | 1371 | Xml::tags( 'label', array( 'for' => 'wpSummary' ), $subject ); |
1369 | 1372 | $commentsubject = |
1370 | | - Xml::tags( 'span', array( 'id' => 'wpSummaryLabel' ), $commentsubject ); |
| 1373 | + Xml::tags( 'span', array( 'class' => $summaryClass, 'id' => "wpSummaryLabel" ), |
| 1374 | + $commentsubject ); |
1371 | 1375 | $commentsubject .= ' '; |
1372 | 1376 | $commentsubject .= Xml::input( 'wpSummary', |
1373 | 1377 | 60, |
— | — | @@ -1385,10 +1389,13 @@ |
1386 | 1390 | } else { |
1387 | 1391 | $commentsubject = ''; |
1388 | 1392 | |
| 1393 | + # Add a class if 'missingsummary' is triggered to allow styling of the summary line |
| 1394 | + $summaryClass = $this->missingSummary ? 'mw-summarymissed' : 'mw-summary'; |
| 1395 | + |
1389 | 1396 | $editsummary = Xml::tags( 'label', array( 'for' => 'wpSummary' ), $summary ); |
1390 | | - $editsummary = |
1391 | | - Xml::tags( 'span', array( 'id' => 'wpSummaryLabel' ), $editsummary ) . ' '; |
1392 | | - |
| 1397 | + $editsummary = Xml::tags( 'span', array( 'class' => $summaryClass, 'id' => "wpSummaryLabel" ), |
| 1398 | + $editsummary ) . ' '; |
| 1399 | + |
1393 | 1400 | $editsummary .= Xml::input( 'wpSummary', |
1394 | 1401 | 60, |
1395 | 1402 | $summarytext, |
— | — | @@ -1397,11 +1404,11 @@ |
1398 | 1405 | 'maxlength' => '200', |
1399 | 1406 | 'tabindex' => '1' |
1400 | 1407 | ) ); |
1401 | | - |
| 1408 | + |
1402 | 1409 | // No idea where this is closed. |
1403 | 1410 | $editsummary = Xml::openElement( 'div', array( 'class' => 'editOptions' ) ) |
1404 | 1411 | . $editsummary . '<br/>'; |
1405 | | - |
| 1412 | + |
1406 | 1413 | $summarypreview = ''; |
1407 | 1414 | if ( $summarytext && $this->preview ) { |
1408 | 1415 | $summarypreview = |