Further cleanup on installer: fix visibility of CC selector results when returning...
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 27 Mar 2011 20:19:24 +0000 (20:19 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 27 Mar 2011 20:19:24 +0000 (20:19 +0000)
includes/installer/WebInstallerPage.php

index 3ea97d0..efb23b2 100644 (file)
@@ -929,9 +929,10 @@ class WebInstaller_Options extends WebInstallerPage {
                } else {
                        $iframeAttribs['src'] = $this->getCCPartnerUrl();
                }
+               $wrapperStyle = ($this->getVar('_LicenseCode') == 'cc-choose') ? '' : 'display: none';
 
                return
-                       "<div class=\"config-cc-wrapper\" id=\"config-cc-wrapper\" style=\"display: none;\">\n" .
+                       "<div class=\"config-cc-wrapper\" id=\"config-cc-wrapper\" style=\"$wrapperStyle\">\n" .
                        Html::element( 'iframe', $iframeAttribs, '', false /* not short */ ) .
                        "</div>\n";
        }