stable
Clone or download
Read-only
request #11226 Mediawiki should be exportable
Export a project with a mediwiki, reimport it in a new project, mediwiki should be imported without any error Please note that there is a magic trick in MediawikiMaintenanceWrapper.php: In MW doc (https://www.mediawiki.org/wiki/Manual:DumpUploads.php) they precise that dumpLoad should be used with a tar command, in our case we only want to copy the file into an other folder, there is a sed whor replace the mediwiki dir (mwstore://local-backend/local-public) by our export folder Change-Id: Ie14483d6e6f75113a0c8fc4f813b005a7457e6b4
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/mediawiki/include/MediawikiMaintenanceWrapper.php | +106 | −0 | Go to diff View file |
A | plugins/mediawiki/include/XMLMediaWikiExporter.php | +184 | −0 | Go to diff View file |
M | plugins/mediawiki/include/autoload.php | +5 | −3 | Go to diff View file |
M | plugins/mediawiki/include/mediawikiPlugin.class.php | +33 | −1 | Go to diff View file |
A | plugins/mediawiki/tests/XMLMediaWikiExporterTest.php | +229 | −0 | Go to diff View file |