r46885 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46884‎ | r46885 | r46886 >
Date:00:21, 6 February 2009
Author:demon
Status:deferred (Comments)
Tags:
Comment:
Add r46884 (Import templates via interwiki) to API as well.
Modified paths:
  • /trunk/phase3/includes/api/ApiImport.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiImport.php
@@ -59,7 +59,8 @@
6060 $source = ImportStreamSource::newFromInterwiki(
6161 $params['interwikisource'],
6262 $params['interwikipage'],
63 - $params['fullhistory']);
 63+ $params['fullhistory']
 64+ $params['templates'] );
6465 }
6566 else
6667 {
@@ -111,6 +112,7 @@
112113 ),
113114 'interwikipage' => null,
114115 'fullhistory' => false,
 116+ 'templates' => false,
115117 'namespace' => array(
116118 ApiBase :: PARAM_TYPE => 'namespace'
117119 )
@@ -125,6 +127,7 @@
126128 'interwikisource' => 'For interwiki imports: wiki to import from',
127129 'interwikipage' => 'For interwiki imports: page to import',
128130 'fullhistory' => 'For interwiki imports: import the full history, not just the current version',
 131+ 'templates' => 'For interwiki imports: import all included templates as well',
129132 'namespace' => 'For interwiki imports: import to this namespace',
130133 );
131134 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r46906Fix fatal error in r46885 (add templates parameter to action=import): add mis...catrope10:25, 6 February 2009

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r46884(bug 15283) Interwiki imports should fetch included templatesdemon00:02, 6 February 2009

Comments

#Comment by Catrope (talk | contribs)   10:26, 6 February 2009

Missing comma added in r46906

Status & tagging log