];
public function __construct() {
- parent::__construct( 'Revisiondelete', 'deletedhistory' );
+ parent::__construct( 'Revisiondelete', 'deleterevision' );
}
public function doesWrites() {
$this->showForm();
}
- $qc = $this->getLogQueryCond();
- # Show relevant lines from the deletion log
- $deleteLogPage = new LogPage( 'delete' );
- $output->addHTML( "<h2>" . $deleteLogPage->getName()->escaped() . "</h2>\n" );
- LogEventsList::showLogExtract(
- $output,
- 'delete',
- $this->targetObj,
- '', /* user */
- [ 'lim' => 25, 'conds' => $qc, 'useMaster' => $this->wasSaved ]
- );
+ if ( $user->isAllowed( 'deletedhistory' ) ) {
+ $qc = $this->getLogQueryCond();
+ # Show relevant lines from the deletion log
+ $deleteLogPage = new LogPage( 'delete' );
+ $output->addHTML( "<h2>" . $deleteLogPage->getName()->escaped() . "</h2>\n" );
+ LogEventsList::showLogExtract(
+ $output,
+ 'delete',
+ $this->targetObj,
+ '', /* user */
+ [ 'lim' => 25, 'conds' => $qc, 'useMaster' => $this->wasSaved ]
+ );
+ }
# Show relevant lines from the suppression log
if ( $user->isAllowed( 'suppressionlog' ) ) {
$suppressLogPage = new LogPage( 'suppress' );
$form .= Xml::openElement( 'form', [
'method' => 'get',
- 'action' => $this->getPageTitle()->getLocalURL(),
+ 'action' => wfScript(),
'id' => 'mw-watchlist-form'
] );
+ $form .= Html::hidden( 'title', $this->getPageTitle()->getPrefixedText() );
$form .= Xml::fieldset(
$this->msg( 'watchlist-options' )->text(),
false,
'targets' => [ 'desktop', 'mobile' ],
],
'mediawiki.special.apisandbox.styles' => [
+ 'targets' => [ 'desktop', 'mobile' ],
'styles' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.top.css',
],
'mediawiki.special.apisandbox' => [
'styles' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.css',
'scripts' => 'resources/src/mediawiki.special/mediawiki.special.apisandbox.js',
+ 'targets' => [ 'desktop', 'mobile' ],
'dependencies' => [
'mediawiki.api',
'mediawiki.jqueryMsg',