First part of bug 22881: Allow uploading directly into the archive to support importi...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Thu, 7 Apr 2011 20:19:44 +0000 (20:19 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Thu, 7 Apr 2011 20:19:44 +0000 (20:19 +0000)
commit5d143aaa7c6df6070e66a78f3969797e7dc12b36
tree7cd4d55b421bd054379f883e032dac0dc614d0e7
parentc06d6b3bd33d65e24dac5c79858de15f6c165a28
First part of bug 22881: Allow uploading directly into the archive to support importing files. Based on a patch by Vitaliy Filippov with some major rewrites by me.
* LocalFile::publish() supports an extra parameter to support publishing into the archive
* Added OldLocalFile::uploadOld(), which is the OldImage equivalent to LocalFile::upload(), but does not override it because it has an entirely different function signature.
includes/filerepo/LocalFile.php
includes/filerepo/OldLocalFile.php