* Under the web subclass, it can already be assumed that PHP 5+ is in use
* and that sessions are working.
*/
- function doEnvironmentChecks( $beginCB, $endCB ) {
+ function doEnvironmentChecks() {
$this->showMessage( 'config-env-php', phpversion() );
$good = true;
foreach ( $this->envChecks as $check ) {
- call_user_func_array( $beginCB, array( $check ) );
$status = $this->$check();
if ( $status === false ) {
$good = false;
}
- call_user_func_array( $endCB, array( $check, $status ) );
}
$this->setVar( '_Environment', $good );
if ( $good ) {
}
$this->parent->output->addWikiText( wfMsgNoTrans( 'config-welcome' ) );
$status = $this->parent->doEnvironmentChecks();
- if ( $status->isOk() ) {
+ if ( $status ) {
$this->parent->output->addWikiText( wfMsgNoTrans( 'config-copyright', wfMsg( 'config-authors' ) ) );
$this->startForm();
$this->endForm();
}
}
-
- public function beginEnvCheck( $step ) {
-
- }
-
- public function endEnvCheck( $step, $status ) {
-
- }
}
class WebInstaller_DBConnect extends WebInstallerPage {