]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - includes/installer/Installer.php
MediaWiki 1.17.1-scripts
[autoinstallsdev/mediawiki.git] / includes / installer / Installer.php
index 9ae5e3f369b876b84e774bc38b5640238980cfe7..e58ed32ecf6c48fc0553e436309dc6078be165ac 100644 (file)
@@ -839,26 +839,7 @@ abstract class Installer {
        protected function envCheckPath() {
                global $IP;
                $IP = dirname( dirname( dirname( __FILE__ ) ) );
-
                $this->setVar( 'IP', $IP );
-
-               // PHP_SELF isn't available sometimes, such as when PHP is CGI but
-               // cgi.fix_pathinfo is disabled. In that case, fall back to SCRIPT_NAME
-               // to get the path to the current script... hopefully it's reliable. SIGH
-               if ( !empty( $_SERVER['PHP_SELF'] ) ) {
-                       $path = $_SERVER['PHP_SELF'];
-               } elseif ( !empty( $_SERVER['SCRIPT_NAME'] ) ) {
-                       $path = $_SERVER['SCRIPT_NAME'];
-               } elseif ( $this->getVar( 'wgScriptPath' ) ) {
-                       // Some kind soul has set it for us already (e.g. debconf)
-                       return true;
-               } else {
-                       $this->showError( 'config-no-uri' );
-                       return false;
-               }
-
-               $uri = preg_replace( '{^(.*)/(mw-)?config.*$}', '$1', $path );
-               $this->setVar( 'wgScriptPath', $uri );
        }
 
        /**