Add support for importing/exporting files. This can be done by embedding the image...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Tue, 12 Apr 2011 19:25:56 +0000 (19:25 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Tue, 12 Apr 2011 19:25:56 +0000 (19:25 +0000)
commit9b3128eb2b654761f21fd4ca1d5a1a4b796dc912
tree9783cde742e114cab17f57708cb858a278537deb
parenta81b8dcc65fac509077dba08e5990fcee4f0bfd3
Add support for importing/exporting files. This can be done by embedding the image as base64 in the XML stream or by copying the images directory manually and pointing the importer to the base images directory.
Currently only backend code available and a few member variables need to be modified to enable the functionality.

Export.php:
* Add <rel> and <sha1base36> elememnts to the XML output
* Add optional <archivename> and <contents> elements to the XML output. <contents> contains an encoding attribute, which is currently only set to base64.
Import.php:
* Add Import::$mImageBasePath which should point to the images/ directory to import from
* Add methods to WikiRevision (terrible name btw) to set the rel, hash, archivename and filesrc.
* Cleanup and made WikiRevision::importUpload working. It's still quite a mess though
OldLocalFiel.php:
* Fix a few timestamp related things from r85635
includes/Export.php
includes/Import.php
includes/filerepo/OldLocalFile.php