Last modified: 2010-05-15 15:37:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5078, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3078 - missing feature in SpecialImport.php , FIXED
missing feature in SpecialImport.php , FIXED
Status: RESOLVED DUPLICATE of bug 2483
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-08-08 22:09 UTC by Marc Meurrens (be)
Modified: 2010-05-15 15:37 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Marc Meurrens (be) 2005-08-08 22:09:35 UTC
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.
Comment 1 Zigger 2005-08-08 22:55:28 UTC

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

Note You need to log in before you can comment on or make changes to this bug.