Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -659,7 +659,7 @@ |
660 | 660 | if($allowMultiple) |
661 | 661 | { |
662 | 662 | $s = count($unknown) > 1 ? "s" : ""; |
663 | | - $vals = implode(", ", $unknown); |
| 663 | + $vals = implode(", ", $unknown); |
664 | 664 | $this->setWarning("Unrecognized value$s for parameter '$valueName': $vals"); |
665 | 665 | } |
666 | 666 | else |
— | — | @@ -829,7 +829,7 @@ |
830 | 830 | 'toofewexpiries' => array('code' => 'toofewexpiries', 'info' => "\$1 expiry timestamps were provided where \$2 were needed"), |
831 | 831 | 'cantimport' => array('code' => 'cantimport', 'info' => "You don't have permission to import pages"), |
832 | 832 | 'cantimport-upload' => array('code' => 'cantimport-upload', 'info' => "You don't have permission to import uploaded pages"), |
833 | | - 'nouploadmodule' => array( 'code' => 'nomodule', 'info' => 'No upload module set' ), |
| 833 | + 'nouploadmodule' => array( 'code' => 'nomodule', 'info' => 'No upload module set' ), |
834 | 834 | 'importnofile' => array('code' => 'nofile', 'info' => "You didn't upload a file"), |
835 | 835 | 'importuploaderrorsize' => array('code' => 'filetoobig', 'info' => 'The file you uploaded is bigger than the maximum upload size'), |
836 | 836 | 'importuploaderrorpartial' => array('code' => 'partialupload', 'info' => 'The file was only partially uploaded'), |
— | — | @@ -855,6 +855,9 @@ |
856 | 856 | 'emptynewsection' => array('code' => 'emptynewsection', 'info' => 'Creating empty new sections is not possible.'), |
857 | 857 | 'revwrongpage' => array('code' => 'revwrongpage', 'info' => "r\$1 is not a revision of ``\$2''"), |
858 | 858 | 'undo-failure' => array('code' => 'undofailure', 'info' => 'Undo failed due to conflicting intermediate edits'), |
| 859 | + |
| 860 | + //uploadMsgs |
| 861 | + 'invalid-session-key' => array( 'code' => 'invalid-session-key', 'info'=>'Not a valid session key' ), |
859 | 862 | ); |
860 | 863 | |
861 | 864 | /** |