* Don't try to fetch the site notice, it will fail with the current code
}
}
$phpError = $this->restoreErrorHandler();
+ if ( !$this->mConn ) {
+ $error = $this->lastError();
+ if ( !$error ) {
+ $error = $phpError;
+ }
+ wfLogDBError( "Connection error: $error\n" );
+ }
wfProfileOut("dbconnect-$server");
}
} else {
# New method
- wfLogDBError( "Connection error: $error\n" );
throw new DBConnectionError( $this, $error );
}
}
}
$text = str_replace( '$1', $this->error, $noconnect );
- $text .= wfGetSiteNotice();
if($wgUseFileCache) {
if($wgTitle) {