Revert "Include short descriptions for extensions bundled in the release"
[lhc/web/wiklou.git] / includes / installer / LocalSettingsGenerator.php
index 6b72047..68664c9 100644 (file)
@@ -137,21 +137,14 @@ class LocalSettingsGenerator {
                $localSettings = $this->getDefaultText();
 
                if ( count( $this->extensions ) ) {
-                       $extensions = $this->installer->findExtensions();
                        $localSettings .= "
 # Enabled Extensions. Most extensions are enabled by including the base extension file here
 # but check specific extension documentation for more details
 # The following extensions were automatically enabled:\n";
 
-                       $ip = $this->installer->getVar( 'IP' );
-                       foreach ( $this->extensions as $ext) {
-                               $path = str_replace( $ip, '', $extensions[$ext]['path'] );
-                               $prefix = '';
-                               if ( $path !== $extensions[$ext]['path'] ) {
-                                       $prefix = '$IP';
-                               }
-                               $path = $prefix . self::escapePhpString( $path );
-                               $localSettings .= "require_once \"$path\";\n";
+                       foreach ( $this->extensions as $extName ) {
+                               $encExtName = self::escapePhpString( $extName );
+                               $localSettings .= "require_once \"\$IP/extensions/$encExtName/$encExtName.php\";\n";
                        }
                }