Last modified: 2011-12-13 18:13:51 UTC
`extensions/README' says: > Please note that under POSIX systems (Linux...), parent of a symbolic path > refers to the link source, NOT to the target! You should check the env > variable MW_INSTALL_PATH in case the extension is not in the default location. but `batchAntiSpoof.php' does not respect `MW_INSTALL_PATH' environment variable.
Created attachment 9666 [details] Proposed patch.
Any reason not to use the 3-liner we use elsewhere: http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/CheckUser/install.php
> Any reason not to use the 3-liner we use elsewhere: Is this question to me? I do not care, if `MW_INSTALL_PATH' environment variable is respected. My patch is just a combination of existed code and a code snippet from `extensions/README': > $IP = getenv( 'MW_INSTALL_PATH' ); > if( $IP === false ) { > $IP = dirname( __FILE__ ) . '/../..'; > } It seems for me both variants, '/../..' and `dirname( dirname( ... ) )' work. If you think another variant is more suitable, please go forward.
r106022
Verified on r106050.