X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Finstaller%2FWebInstallerPage.php;h=d35046d720bb34031d7ac1b374b7acaf2ab1003a;hb=253d3b7d6a5c5ea7ab74b69490b48674d828c5e9;hp=ef35b247aa493f4bf61fb4053915b91c2e71456d;hpb=15aa72fbd7fd1f7e236e44771033d7f6052f2e5c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/WebInstallerPage.php b/includes/installer/WebInstallerPage.php index ef35b247aa..d35046d720 100644 --- a/includes/installer/WebInstallerPage.php +++ b/includes/installer/WebInstallerPage.php @@ -103,6 +103,8 @@ abstract class WebInstallerPage { * Get the starting tags of a fieldset. * * @param $legend String: message name + * + * @return string */ protected function getFieldsetStart( $legend ) { return "\n
" . wfMsgHtml( $legend ) . "\n"; @@ -110,10 +112,33 @@ abstract class WebInstallerPage { /** * Get the end tag of a fieldset. + * + * @returns string */ protected function getFieldsetEnd() { return "
\n"; } + + /** + * Opens a textarea used to display the progress of a long operation + */ + protected function startLiveBox() { + $this->addHTML( + '' . + '' . + ' +' ); + $this->parent->output->flush(); + } } class WebInstaller_Language extends WebInstallerPage { @@ -177,6 +202,8 @@ class WebInstaller_Language extends WebInstallerPage { /** * Get a -' ); - $this->parent->output->flush(); + $this->endLiveBox(); + if ( $result ) { // If they're going to possibly regenerate LocalSettings, we // need to create the upgrade/secret keys. Bug 26481 if( !$this->getVar( '_ExistingDBSettings' ) ) { - $this->parent->generateSecretKey(); - $this->parent->generateUpgradeKey(); + $this->parent->generateKeys(); } $this->setVar( '_UpgradeDone', true ); $this->showDoneMessage(); @@ -1082,9 +1105,15 @@ class WebInstaller_Install extends WebInstallerPage { public function startStage( $step ) { $this->addHTML( "
  • " . wfMsgHtml( "config-install-$step" ) . wfMsg( 'ellipsis') ); + if ( $step == 'extension-tables' ) { + $this->startLiveBox(); + } } public function endStage( $step, $status ) { + if ( $step == 'extension-tables' ) { + $this->endLiveBox(); + } $msg = $status->isOk() ? 'config-install-step-done' : 'config-install-step-failed'; $html = wfMsgHtml( 'word-separator' ) . wfMsgHtml( $msg ); if ( !$status->isOk() ) {