From: Michael Dale Date: Wed, 15 Jul 2009 23:15:51 +0000 (+0000) Subject: other part of the r53342 commit X-Git-Tag: 1.31.0-rc.0~40901 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=369402239c68a6aeb57cb91f7a334ded40387190;p=lhc%2Fweb%2Fwiklou.git other part of the r53342 commit --- diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 10e96afdde..9879aedd5b 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -659,7 +659,7 @@ abstract class ApiBase { if($allowMultiple) { $s = count($unknown) > 1 ? "s" : ""; - $vals = implode(", ", $unknown); + $vals = implode(", ", $unknown); $this->setWarning("Unrecognized value$s for parameter '$valueName': $vals"); } else @@ -829,7 +829,7 @@ abstract class ApiBase { 'toofewexpiries' => array('code' => 'toofewexpiries', 'info' => "\$1 expiry timestamps were provided where \$2 were needed"), 'cantimport' => array('code' => 'cantimport', 'info' => "You don't have permission to import pages"), 'cantimport-upload' => array('code' => 'cantimport-upload', 'info' => "You don't have permission to import uploaded pages"), - 'nouploadmodule' => array( 'code' => 'nomodule', 'info' => 'No upload module set' ), + 'nouploadmodule' => array( 'code' => 'nomodule', 'info' => 'No upload module set' ), 'importnofile' => array('code' => 'nofile', 'info' => "You didn't upload a file"), 'importuploaderrorsize' => array('code' => 'filetoobig', 'info' => 'The file you uploaded is bigger than the maximum upload size'), 'importuploaderrorpartial' => array('code' => 'partialupload', 'info' => 'The file was only partially uploaded'), @@ -855,6 +855,9 @@ abstract class ApiBase { 'emptynewsection' => array('code' => 'emptynewsection', 'info' => 'Creating empty new sections is not possible.'), 'revwrongpage' => array('code' => 'revwrongpage', 'info' => "r\$1 is not a revision of ``\$2''"), 'undo-failure' => array('code' => 'undofailure', 'info' => 'Undo failed due to conflicting intermediate edits'), + + //uploadMsgs + 'invalid-session-key' => array( 'code' => 'invalid-session-key', 'info'=>'Not a valid session key' ), ); /**