Index: trunk/extensions/ApprovedRevs/ApprovedRevs.i18n.php |
— | — | @@ -42,6 +42,7 @@ |
43 | 43 | 'approvedrevs-approvelatest' => 'approve latest', |
44 | 44 | 'approvedrevs-approvethisrev' => 'Approve this revision', |
45 | 45 | 'approvedrevs-viewlatestrev' => 'View the latest revision', |
| 46 | + 'approvedrevs-noapprovedrevs' => 'No revision has been approved for this page.', |
46 | 47 | 'right-approverevisions' => 'Set a certain revision of a wiki page as approved', |
47 | 48 | 'right-viewlinktolatest' => 'View explanatory text at the top of pages that have an approved revision', |
48 | 49 | ); |
Index: trunk/extensions/ApprovedRevs/ApprovedRevs.hooks.php |
— | — | @@ -561,14 +561,17 @@ |
562 | 562 | |
563 | 563 | if ( empty( $approvedId ) || $approvedId != $article->getRevIdFetched() ) { |
564 | 564 | if ( $egApprovedRevsBlankIfUnapproved && !$wgRequest->getCheck( 'oldid' ) ) { |
565 | | - $wgOut->addHTML( Xml::element( 'a', |
566 | | - array( 'href' => $article->getTitle()->getLocalUrl( |
567 | | - array( |
568 | | - 'oldid' => $article->getRevIdFetched() |
569 | | - ) |
570 | | - ) ), |
571 | | - wfMsg( 'approvedrevs-viewlatestrev' ) |
572 | | - ) ); |
| 565 | + $wgOut->addHTML( |
| 566 | + htmlspecialchars( wfMsg( 'approvedrevs-noapprovedrevs' ) ) . ' ' . |
| 567 | + Xml::element( 'a', |
| 568 | + array( 'href' => $article->getTitle()->getLocalUrl( |
| 569 | + array( |
| 570 | + 'oldid' => $article->getRevIdFetched() |
| 571 | + ) |
| 572 | + ) ), |
| 573 | + wfMsg( 'approvedrevs-viewlatestrev' ) |
| 574 | + ) . '.' |
| 575 | + ); |
573 | 576 | } |
574 | 577 | else { |
575 | 578 | $wgOut->addHTML( '<b>' . Xml::element( 'a', |