From ad75e1411c067ab6e9c4ee80b6f2669badcc5593 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Mon, 22 Feb 2010 03:34:56 +0000 Subject: [PATCH] ws-only cleanup --- includes/api/ApiMain.php | 4 ++-- includes/api/ApiMove.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index b450934a81..f83a052701 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -400,7 +400,7 @@ class ApiMain extends ApiBase { $this->getResult()->addValue( null, 'requestid', $requestid ); $params = $this->extractRequestParams(); - + $this->mShowVersions = $params['version']; $this->mAction = $params['action']; @@ -584,7 +584,7 @@ class ApiMain extends ApiBase { '', ); } - + public function getPossibleErrors() { return array_merge( parent::getPossibleErrors(), array( array( 'readonlytext' ), diff --git a/includes/api/ApiMove.php b/includes/api/ApiMove.php index fca1e5d7d9..2aa20b4bbc 100644 --- a/includes/api/ApiMove.php +++ b/includes/api/ApiMove.php @@ -68,7 +68,7 @@ class ApiMove extends ApiBase { if ( !$toTitle ) $this->dieUsageMsg( array( 'invalidtitle', $params['to'] ) ); $toTalk = $toTitle->getTalkPage(); - + if ( $toTitle->getNamespace() == NS_FILE && !RepoGroup::singleton()->getLocalRepo()->findFile( $toTitle ) && wfFindFile( $toTitle ) ) @@ -79,7 +79,7 @@ class ApiMove extends ApiBase { $this->dieUsageMsg( array( 'cantoverwrite-sharedfile' ) ); } } - + // Move the page $hookErr = null; $retval = $fromTitle->moveTo( $toTitle, true, $params['reason'], !$params['noredirect'] ); @@ -135,7 +135,7 @@ class ApiMove extends ApiBase { } $this->getResult()->addValue( null, $this->getModuleName(), $r ); } - + public function moveSubpages( $fromTitle, $toTitle, $reason, $noredirect ) { $retval = array(); @@ -218,7 +218,7 @@ class ApiMove extends ApiBase { array( 'sharedfile-exists' ), ) ); } - + public function getTokenSalt() { return ''; } -- 2.20.1