https://bugzilla.wikimedia.org/show_bug.cgi?id=31533
--- Comment #7 from Sam Reed (reedy) <s...@reedyboy.net> 2012-03-11 21:36:06 UTC --- // cache initially available databases to make sure that everything will be displayed correctly // after a refresh on env checks page $databases = $this->getVar( '_CompiledDBs-preFilter' ); if ( !$databases ) { $databases = $this->getVar( '_CompiledDBs' ); $this->setVar( '_CompiledDBs-preFilter', $databases ); } $databases = array_flip ( $databases ); foreach ( array_keys( $databases ) as $db ) { $installer = $this->getDBInstaller( $db ); $status = $installer->checkPrerequisites(); if ( !$status->isGood() ) { $this->showStatusMessage( $status ); } if ( !$status->isOK() ) { unset( $databases[$db] ); } } $databases = array_flip( $databases ); if ( !$databases ) { $this->showError( 'config-no-db', $wgLang->commaList( $allNames ) ); // @todo FIXME: This only works for the web installer! return false; } $this->setVar( '_CompiledDBs', $databases ); If we have already a cached list of dbs, but this count is still 0, attempt to load it again. If still nill, we could give up... -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l