}
# Show relevant lines from the deletion log:
- $wgOut->addHTML( "<h2>" . htmlspecialchars( LogPage::logName( 'delete' ) ) . "</h2>\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
);
$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' ) ) .
"<tr>
<td colspan='2'>" .
wfMsgWikiHtml( 'undeleteextrahelp' ) .
$wgOut->addHtml( $table );
}
- $wgOut->addHTML( "<h2>" . htmlspecialchars( wfMsg( "history" ) ) . "</h2>\n" );
+ $wgOut->addHTML( Xml::element( 'h2', null, wfMsg( 'history' ) ) . "\n" );
if( $haveRevisions ) {
# The page's stored (deleted) history:
$target = urlencode( $this->mTarget );
$remaining = $revisions->numRows();
$earliestLiveTime = $this->getEarliestTime( $this->mTargetObj );
-
+
while( $row = $revisions->fetchObject() ) {
$remaining--;
$ts = wfTimestamp( TS_MW, $row->ar_timestamp );
}
if( $haveFiles ) {
- $wgOut->addHtml( "<h2>" . wfMsgHtml( 'filehist' ) . "</h2>\n" );
+ $wgOut->addHtml( Xml::element( 'h2', null, wfMsg( 'filehist' ) ) . "\n" );
$wgOut->addHtml( "<ul>" );
while( $row = $files->fetchObject() ) {
$ts = wfTimestamp( TS_MW, $row->fa_timestamp );
return true;
}
-
+
private function getEarliestTime( $title ) {
$dbr = wfGetDB( DB_SLAVE );
if( $title->exists() ) {