r52388 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52387‎ | r52388 | r52389 >
Date:08:33, 25 June 2009
Author:raymond
Status:ok
Tags:
Comment:
Wrap some more elements into divs
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUndelete.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUndelete.php
@@ -945,7 +945,7 @@
946946 $wgOut->setPagetitle( wfMsg( 'viewdeletedpage' ) );
947947 }
948948
949 - $wgOut->addWikiMsg( 'undeletepagetitle', $this->mTargetObj->getPrefixedText() );
 949+ $wgOut->wrapWikiMsg( "<div class='mw-undelete-pagetitle'>\n$1</div>\n", array ( 'undeletepagetitle', $this->mTargetObj->getPrefixedText() ) );
950950
951951 $archive = new PageArchive( $this->mTargetObj );
952952 /*
@@ -955,12 +955,14 @@
956956 return;
957957 }
958958 */
 959+ $wgOut->addHTML( '<div class="mw-undelete-history">' );
959960 if ( $this->mAllowed ) {
960961 $wgOut->addWikiMsg( "undeletehistory" );
961962 $wgOut->addWikiMsg( "undeleterevdel" );
962963 } else {
963964 $wgOut->addWikiMsg( "undeletehistorynoadmin" );
964965 }
 966+ $wgOut->addHTML( '</div>' );
965967
966968 # List all stored revisions
967969 $revisions = $archive->listRevisions();
@@ -1025,7 +1027,7 @@
10261028 Xml::fieldset( wfMsg( 'undelete-fieldset-title' ) ) .
10271029 Xml::openElement( 'table', array( 'id' => 'mw-undelete-table' ) ) .
10281030 "<tr>
1029 - <td colspan='2'>" .
 1031+ <td colspan='2' class='mw-undelete-extrahelp'>" .
10301032 wfMsgWikiHtml( 'undeleteextrahelp' ) .
10311033 "</td>
10321034 </tr>

Status & tagging log