Page MenuHomePhabricator

missing feature in SpecialImport.php , FIXED
Closed, ResolvedPublic

Description

Author: bugzilla.wikimedia

Description:
When you import an XML file, the article and revision are created properly.
However, links, categories, searches, etc are NOT updated.
The fix is here :

!FIX-1 : !FILE : SpecialImport.php
function importOldRevision()
at the end of the method,
just before returning true, add this line :

$article->editUpdates($article->preSaveTransform($this->getText())) ;

I am not really sure the 'preSaveTransform' stuff is really needed in this case,
but, it will not harm.


Version: 1.5.x
Severity: normal

Details

Reference
bz3078

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:47 PM
bzimport set Reference to bz3078.
bzimport added a subscriber: Unknown Object (MLST).

zigger wrote:

*** This bug has been marked as a duplicate of 2483 ***