Index: trunk/extensions/SocialProfile/install.php |
— | — | @@ -13,7 +13,13 @@ |
14 | 14 | |
15 | 15 | # We're going to have to assume we are running from |
16 | 16 | # extensions/SocialProfile/install.php (the dir name doesn't even matter) |
17 | | -$maint = dirname( dirname( __FILE__ ) ) . '/maintenance'; |
| 17 | + |
| 18 | +$maint = getenv( 'MW_INSTALL_PATH' ); |
| 19 | +if( $maint === false ) |
| 20 | + $maint = dirname( dirname( __FILE__ ) ) . '/maintenance'; |
| 21 | +else |
| 22 | + $maint .= '/maintenance'; |
| 23 | + |
18 | 24 | if( is_file( $maint . '/commandLine.inc' ) ) { |
19 | 25 | require_once( $maint . '/commandLine.inc' ); |
20 | 26 | } else { |