Revision: 43503
Author:   ialex
Date:     2008-11-14 21:29:39 +0000 (Fri, 14 Nov 2008)

Log Message:
-----------
Use MW_INSTALL_PATH environment variable if set

Modified Paths:
--------------
    trunk/extensions/SocialProfile/install.php

Modified: trunk/extensions/SocialProfile/install.php
===================================================================
--- trunk/extensions/SocialProfile/install.php  2008-11-14 21:28:30 UTC (rev 
43502)
+++ trunk/extensions/SocialProfile/install.php  2008-11-14 21:29:39 UTC (rev 
43503)
@@ -13,7 +13,13 @@
 
 # We're going to have to assume we are running from
 # extensions/SocialProfile/install.php (the dir name doesn't even matter)
-$maint = dirname( dirname( __FILE__ ) ) . '/maintenance';
+
+$maint = getenv( 'MW_INSTALL_PATH' );
+if( $maint === false )
+       $maint = dirname( dirname( __FILE__ ) ) . '/maintenance';
+else
+       $maint .= '/maintenance';
+
 if( is_file( $maint . '/commandLine.inc' ) ) {
        require_once( $maint . '/commandLine.inc' );
 } else {



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to