(bug 24766) Installer is installing all extensions, not just the ones you picked
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 12 Aug 2010 12:58:27 +0000 (12:58 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 12 Aug 2010 12:58:27 +0000 (12:58 +0000)
includes/installer/CoreInstaller.php
includes/installer/WebInstallerPage.php

index 90aeec7..c3c8e36 100644 (file)
@@ -271,8 +271,6 @@ abstract class CoreInstaller extends Installer {
                        }
                }
 
-               $this->setVar( '_Extensions', $exts );
-
                return $exts;
        }
 
index 52258ce..f363d9c 100644 (file)
@@ -792,13 +792,14 @@ class WebInstaller_Options extends WebInstallerPage {
                        $this->setVar( 'wgRightsIcon', '' );
                }
 
-               $exts = $this->parent->getVar( '_Extensions' );
-               foreach( $exts as $key => $ext ) {
-                       if( !$this->parent->request->getCheck( 'config_ext-' . $ext ) ) {
-                               unset( $exts[$key] );
+               $extsAvailable = $this->parent->findExtensions();
+               $extsToInstall = array();
+               foreach( $extsAvailable as $ext ) {
+                       if( $this->parent->request->getCheck( 'config_ext-' . $ext ) ) {
+                               $extsToInstall[] = $ext;
                        }
                }
-               $this->parent->setVar( '_Extensions', $exts );
+               $this->parent->setVar( '_Extensions', $extsToInstall );
                return true;
        }