X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiImport.php;h=295f16ec53146d026872f3ab0be31305a83eb512;hb=3afc76a4b5ad2f73dd69a82ec08c0d0e4799f00f;hp=f48a822e365329b22fd50f4b03fe32b47bf448c7;hpb=f10c9815e69b59844c178d218640bd1ac0435896;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index f48a822e36..295f16ec53 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -99,6 +99,7 @@ class ApiImport extends ApiBase { public function getAllowedParams() { global $wgImportSources; + return array( 'token' => array( ApiBase::PARAM_TYPE => 'string', @@ -176,7 +177,8 @@ class ApiImport extends ApiBase { public function getExamples() { return array( - 'api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&namespace=100&fullhistory=&token=123ABC' + 'api.php?action=import&interwikisource=meta&interwikipage=Help:ParserFunctions&' . + 'namespace=100&fullhistory=&token=123ABC' => 'Import [[meta:Help:Parserfunctions]] to namespace 100 with full history', ); }