Index: trunk/phase3/includes/installer/DatabaseInstaller.php |
— | — | @@ -494,13 +494,14 @@ |
495 | 495 | * @return String |
496 | 496 | */ |
497 | 497 | public function getWebUserBox( $noCreateMsg = false ) { |
| 498 | + $wrapperStyle = $this->getVar( '_SameAccount' ) ? 'display: none' : ''; |
498 | 499 | $s = Html::openElement( 'fieldset' ) . |
499 | 500 | Html::element( 'legend', array(), wfMsg( 'config-db-web-account' ) ) . |
500 | 501 | $this->getCheckBox( |
501 | 502 | '_SameAccount', 'config-db-web-account-same', |
502 | 503 | array( 'class' => 'hideShowRadio', 'rel' => 'dbOtherAccount' ) |
503 | 504 | ) . |
504 | | - Html::openElement( 'div', array( 'id' => 'dbOtherAccount', 'style' => 'display: none;' ) ) . |
| 505 | + Html::openElement( 'div', array( 'id' => 'dbOtherAccount', 'style' => $wrapperStyle ) ) . |
505 | 506 | $this->getTextBox( 'wgDBuser', 'config-db-username' ) . |
506 | 507 | $this->getPasswordBox( 'wgDBpassword', 'config-db-password' ) . |
507 | 508 | $this->parent->getHelpBox( 'config-db-web-help' ); |
Index: trunk/phase3/includes/installer/WebInstallerPage.php |
— | — | @@ -745,6 +745,7 @@ |
746 | 746 | } |
747 | 747 | } |
748 | 748 | |
| 749 | + $emailwrapperStyle = $this->getVar( 'wgEnableEmail' ) ? '' : 'display: none'; |
749 | 750 | $this->startForm(); |
750 | 751 | $this->addHTML( |
751 | 752 | # User Rights |
— | — | @@ -775,7 +776,7 @@ |
776 | 777 | 'attribs' => array( 'class' => 'showHideRadio', 'rel' => 'emailwrapper' ), |
777 | 778 | ) ) . |
778 | 779 | $this->parent->getHelpBox( 'config-enable-email-help' ) . |
779 | | - "<div id=\"emailwrapper\">" . |
| 780 | + "<div id=\"emailwrapper\" style=\"$emailwrapperStyle\">" . |
780 | 781 | $this->parent->getTextBox( array( |
781 | 782 | 'var' => 'wgPasswordSender', |
782 | 783 | 'label' => 'config-email-sender' |
— | — | @@ -830,6 +831,7 @@ |
831 | 832 | ) |
832 | 833 | ); |
833 | 834 | |
| 835 | + $uploadwrapperStyle = $this->getVar( 'wgEnableUploads' ) ? '' : 'display: none'; |
834 | 836 | $this->addHTML( |
835 | 837 | # Uploading |
836 | 838 | $this->getFieldSetStart( 'config-upload-settings' ) . |
— | — | @@ -839,7 +841,7 @@ |
840 | 842 | 'attribs' => array( 'class' => 'showHideRadio', 'rel' => 'uploadwrapper' ), |
841 | 843 | 'help' => $this->parent->getHelpBox( 'config-upload-help' ) |
842 | 844 | ) ) . |
843 | | - '<div id="uploadwrapper" style="display: none;">' . |
| 845 | + '<div id="uploadwrapper" style="' . $uploadwrapperStyle . '">' . |
844 | 846 | $this->parent->getTextBox( array( |
845 | 847 | 'var' => 'wgDeletedDirectory', |
846 | 848 | 'label' => 'config-upload-deleted', |