$this->getResult()->addValue( null, 'requestid', $requestid );
$params = $this->extractRequestParams();
-
+
$this->mShowVersions = $params['version'];
$this->mAction = $params['action'];
'',
);
}
-
+
public function getPossibleErrors() {
return array_merge( parent::getPossibleErrors(), array(
array( 'readonlytext' ),
if ( !$toTitle )
$this->dieUsageMsg( array( 'invalidtitle', $params['to'] ) );
$toTalk = $toTitle->getTalkPage();
-
+
if ( $toTitle->getNamespace() == NS_FILE
&& !RepoGroup::singleton()->getLocalRepo()->findFile( $toTitle )
&& wfFindFile( $toTitle ) )
$this->dieUsageMsg( array( 'cantoverwrite-sharedfile' ) );
}
}
-
+
// Move the page
$hookErr = null;
$retval = $fromTitle->moveTo( $toTitle, true, $params['reason'], !$params['noredirect'] );
}
$this->getResult()->addValue( null, $this->getModuleName(), $r );
}
-
+
public function moveSubpages( $fromTitle, $toTitle, $reason, $noredirect )
{
$retval = array();
array( 'sharedfile-exists' ),
) );
}
-
+
public function getTokenSalt() {
return '';
}