X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebStart.php;h=be95779af31a6523b3927e0859144ff045b2c8da;hb=8624538de243da3779db5eb3362bedf78d2e2931;hp=e4d93f9a30d2b0d56e2480972435aebd421d01c7;hpb=5120937028f768749d058aa91dde82a96de0af1c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebStart.php b/includes/WebStart.php index e4d93f9a30..be95779af3 100644 --- a/includes/WebStart.php +++ b/includes/WebStart.php @@ -50,13 +50,10 @@ unset( $IP ); # its purpose. define( 'MEDIAWIKI', true ); -# Full path to working directory. -# Makes it possible to for example to have effective exclude path in apc. -# __DIR__ breaks symlinked includes, but realpath() returns false -# if we don't have permissions on parent directories. +# Full path to the installation directory. $IP = getenv( 'MW_INSTALL_PATH' ); if ( $IP === false ) { - $IP = realpath( '.' ) ?: dirname( __DIR__ ); + $IP = dirname( __DIR__ ); } // If no LocalSettings file exists, try to display an error page