35 if ( $this->getVar(
'_UpgradeDone' ) ) {
39 if ( $this->parent->request->wasPosted() && !$this->getVar(
'_ExistingDBSettings' ) ) {
53 $type = $this->getVar(
'wgDBtype' );
54 $installer = $this->parent->getDBInstaller(
$type );
56 if ( !$installer->needsUpgrade() ) {
60 if ( $this->parent->request->wasPosted() ) {
61 $installer->preUpgrade();
63 $this->startLiveBox();
64 $result = $installer->doUpgrade();
70 if ( !$this->getVar(
'_ExistingDBSettings' ) ) {
71 $this->parent->generateKeys();
73 $this->setVar(
'_UpgradeDone',
true );
77 $this->parent->showError(
'config-upgrade-error' );
85 $this->addHTML( $this->parent->getInfoBox(
94 $regenerate = !$this->getVar(
'_ExistingDBSettings' );
96 $msg =
'config-upgrade-done';
98 $msg =
'config-upgrade-done-no-regenerate';
100 $this->parent->disableLinkPopups();
102 $this->parent->getInfoBox(
104 $this->getVar(
'wgServer' ) .
105 $this->getVar(
'wgScriptPath' ) .
'/index.php'
106 )->plain(),
'tick-32.png'
109 $this->parent->restoreLinkPopups();
110 $this->endForm( $regenerate ?
'regenerate' :
false,
false );