From 7a673a007fce22caf87ef1ab7100e47b31dc1af1 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Thu, 13 Mar 2008 09:46:25 +0000 Subject: [PATCH] * Add a legend to the fieldset for consistency * Add a CSS id to the table * User some more proper XML functions --- includes/SpecialUndelete.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index 51b71d0865..5f2ecd15f9 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -888,14 +888,14 @@ class UndeleteForm { } # Show relevant lines from the deletion log: - $wgOut->addHTML( "

" . htmlspecialchars( LogPage::logName( 'delete' ) ) . "

\n" ); + $wgOut->addHTML( Xml::element( 'h2', null, LogPage::logName( 'delete' ) ) . "\n" ); $logViewer = new LogViewer( new LogReader( new FauxRequest( array( 'page' => $this->mTargetObj->getPrefixedText(), 'type' => 'delete' - ) + ) ) ), LogViewer::NO_ACTION_LINK ); @@ -907,7 +907,8 @@ class UndeleteForm { $align = $wgContLang->isRtl() ? 'left' : 'right'; $table = Xml::openElement( 'fieldset' ) . - Xml::openElement( 'table' ) . + Xml::element( 'legend', null, wfMsg( 'undelete') ). + Xml::openElement( 'table', array( 'id' => 'mw-undelete-table' ) ) . " " . wfMsgWikiHtml( 'undeleteextrahelp' ) . @@ -934,7 +935,7 @@ class UndeleteForm { $wgOut->addHtml( $table ); } - $wgOut->addHTML( "

" . htmlspecialchars( wfMsg( "history" ) ) . "

\n" ); + $wgOut->addHTML( Xml::element( 'h2', null, wfMsg( 'history' ) ) . "\n" ); if( $haveRevisions ) { # The page's stored (deleted) history: @@ -942,7 +943,7 @@ class UndeleteForm { $target = urlencode( $this->mTarget ); $remaining = $revisions->numRows(); $earliestLiveTime = $this->getEarliestTime( $this->mTargetObj ); - + while( $row = $revisions->fetchObject() ) { $remaining--; $ts = wfTimestamp( TS_MW, $row->ar_timestamp ); @@ -987,7 +988,7 @@ class UndeleteForm { } if( $haveFiles ) { - $wgOut->addHtml( "

" . wfMsgHtml( 'filehist' ) . "

\n" ); + $wgOut->addHtml( Xml::element( 'h2', null, wfMsg( 'filehist' ) ) . "\n" ); $wgOut->addHtml( "