From: Chad Horohoe Date: Fri, 6 Feb 2009 00:21:06 +0000 (+0000) Subject: Add r46884 (Import templates via interwiki) to API as well. X-Git-Tag: 1.31.0-rc.0~43014 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=dc6c95a6f930657b333a76d57085589981a002ea;p=lhc%2Fweb%2Fwiklou.git Add r46884 (Import templates via interwiki) to API as well. --- diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index 05037a646c..50a28a1c83 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -59,7 +59,8 @@ class ApiImport extends ApiBase { $source = ImportStreamSource::newFromInterwiki( $params['interwikisource'], $params['interwikipage'], - $params['fullhistory']); + $params['fullhistory'] + $params['templates'] ); } else { @@ -111,6 +112,7 @@ class ApiImport extends ApiBase { ), 'interwikipage' => null, 'fullhistory' => false, + 'templates' => false, 'namespace' => array( ApiBase :: PARAM_TYPE => 'namespace' ) @@ -125,6 +127,7 @@ class ApiImport extends ApiBase { 'interwikisource' => 'For interwiki imports: wiki to import from', 'interwikipage' => 'For interwiki imports: page to import', 'fullhistory' => 'For interwiki imports: import the full history, not just the current version', + 'templates' => 'For interwiki imports: import all included templates as well', 'namespace' => 'For interwiki imports: import to this namespace', ); }