* @ingroup SpecialPage
*/
use MediaWiki\MediaWikiServices;
+use Wikimedia\Rdbms\ResultWrapper;
/**
* Used to show archived pages and eventually restore them.
# Does this page already exist? We'll have to update it...
$article = WikiPage::factory( $this->title );
- # Load latest data for the current page (bug 31179)
+ # Load latest data for the current page (T33179)
$article->loadPageData( 'fromdbmaster' );
$oldcountable = $article->isCountable();
'textarea',
[
'readonly' => 'readonly',
- 'cols' => $user->getIntOption( 'cols' ),
- 'rows' => $user->getIntOption( 'rows' )
+ 'cols' => 80,
+ 'rows' => 25
],
$content->getNativeData() . "\n"
);
// Show revision undeletion warnings and errors
$status = $archive->getRevisionStatus();
if ( $status && !$status->isGood() ) {
- $out->addWikiText( '<div class="error">' .
- $status->getWikiText(
- 'cannotundelete',
- 'cannotundelete'
- ) . '</div>'
+ $out->wrapWikiMsg(
+ "<div class=\"error\" id=\"mw-error-cannotundelete\">\n$1\n</div>",
+ 'cannotundelete'
);
}