dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37895d4
)
* (bug 28368) add hint for multipart/form-data to api information of action=import...
author
Brion Vibber
<brion@users.mediawiki.org>
Wed, 6 Apr 2011 22:16:38 +0000
(22:16 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Wed, 6 Apr 2011 22:16:38 +0000
(22:16 +0000)
includes/api/ApiImport.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiImport.php
b/includes/api/ApiImport.php
index
c497b9c
..
f01035c
100644
(file)
--- a/
includes/api/ApiImport.php
+++ b/
includes/api/ApiImport.php
@@
-132,7
+132,11
@@
class ApiImport extends ApiBase {
}
public function getDescription() {
- return 'Import a page from another wiki, or an XML file';
+ return array(
+ 'Import a page from another wiki, or an XML file.' ,
+ 'Note that the HTTP POST must be done as a file upload (i.e. using multipart/form-data) when',
+ 'sending a file for the "xml" parameter.'
+ );
}
public function getPossibleErrors() {