r43503 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43502‎ | r43503 | r43504 >
Date:21:29, 14 November 2008
Author:ialex
Status:ok
Tags:
Comment:
Use MW_INSTALL_PATH environment variable if set
Modified paths:
  • /trunk/extensions/SocialProfile/install.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/install.php
@@ -13,7 +13,13 @@
1414
1515 # We're going to have to assume we are running from
1616 # 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+
1824 if( is_file( $maint . '/commandLine.inc' ) ) {
1925 require_once( $maint . '/commandLine.inc' );
2026 } else {

Status & tagging log