diff options
Diffstat (limited to 'includes/api/ApiQueryIWLinks.php')
-rw-r--r-- | includes/api/ApiQueryIWLinks.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index 30c7f5a8..fc77b4e6 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -58,10 +58,7 @@ class ApiQueryIWLinks extends ApiQueryBase { if ( !is_null( $params['continue'] ) ) { $cont = explode( '|', $params['continue'] ); - if ( count( $cont ) != 3 ) { - $this->dieUsage( 'Invalid continue param. You should pass the ' . - 'original value returned by the previous query', '_badcontinue' ); - } + $this->dieContinueUsageIf( count( $cont ) != 3 ); $op = $params['dir'] == 'descending' ? '<' : '>'; $db = $this->getDB(); $iwlfrom = intval( $cont[0] ); @@ -187,7 +184,6 @@ class ApiQueryIWLinks extends ApiQueryBase { public function getPossibleErrors() { return array_merge( parent::getPossibleErrors(), array( array( 'missingparam', 'prefix' ), - array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ), ) ); } @@ -196,8 +192,4 @@ class ApiQueryIWLinks extends ApiQueryBase { 'api.php?action=query&prop=iwlinks&titles=Main%20Page' => 'Get interwiki links from the [[Main Page]]', ); } - - public function getVersion() { - return __CLASS__ . ': $Id$'; - } } |