Preliminary support for shared upload directory. This is primarily intended
authorErik Moeller <erik@users.mediawiki.org>
Thu, 21 Oct 2004 05:04:14 +0000 (05:04 +0000)
committerErik Moeller <erik@users.mediawiki.org>
Thu, 21 Oct 2004 05:04:14 +0000 (05:04 +0000)
commit0d02b52702b9eeaa0bc2a3dbed35bb8c29179825
tree7b04e6637d9fe8c7dbc1ff597ce75f88b4874800
parentd14181afe1c0d516320ba7bf498560f7d5fde24f
Preliminary support for shared upload directory. This is primarily intended
for the Wikimedia Commons. If $wgUseSharedUploads is set, MediaWiki will try
to locate an image file in the shared upload directory if it is not found
locally. Thumbnails for shared images will also be generated in the
shared directory.

Note: I changed
                $text = $this->replaceInternalLinks ( $text );
                $text = $this->replaceExternalLinks( $text );
to
                $text = $this->replaceExternalLinks( $text );
                $text = $this->replaceInternalLinks ( $text );

in Parser.php. Otherwise [[Media:Bla.jpg]] to an absolute URL would be
incorrectly parsed as external links. The header of
replaceExternalLinks says:

        Note: we have to do external links before the internal ones

So the old order was not consistent with the documentation. I did some
tests and nothing seems to be broken, but I have some problems executing
parserTests.php so I couldn't test it systematically.
includes/DefaultSettings.php
includes/Image.php
includes/ImagePage.php
includes/Parser.php
includes/Skin.php
languages/Language.php
skins/common/common.css
skins/monobook/main.css