For various reasons it makes sense in a wiki I am administering to have subpages in the Image namespace. I've turned this on in LocalSettings.php, but it doesn't seem to work: i.e., if I try to upload an image to Image:foo/bar.jpg, mediawiki puts it in Image:bar.jpg. Is this a bug or a feature? :) And, in either case, can I "fix" it?
-- Daniel M. Israel dmi1@cornell.edu
Daniel Israel wrote:
For various reasons it makes sense in a wiki I am administering to have subpages in the Image namespace. I've turned this on in LocalSettings.php, but it doesn't seem to work: i.e., if I try to upload an image to Image:foo/bar.jpg, mediawiki puts it in Image:bar.jpg. Is this a bug or a feature? :) And, in either case, can I "fix" it?
SpecialUpload.php "cleans" the image names. You can remove the cleaning of /. However, you will need to tweak it later on the real name (your FS won't like files with a / on its name).
It will probably easier when image names and archive names get splitted, and renames allowed. Not to happen early, though.
mediawiki-l@lists.wikimedia.org