Project

General

Profile

Bug #22549 ยป auto_install_redirect.diff

Administrator Admin, 2010-04-30 11:04

View differences:

t3lib/class.t3lib_db.php (working copy)
// check if MySQL extension is loaded
if (!extension_loaded('mysql')) {
$header = 'Database Error';
$message = 'It seems that MySQL support for PHP is not installed!';
t3lib_timeTrack::debug_typo3PrintError($header, $message, false, t3lib_div::getIndpEnv('TYPO3_SITE_URL'));
exit;
$message = 'Database Error: It seems that MySQL support for PHP is not installed!';
throw new RuntimeException($message, 1271492606);
}
// Check for client compression
typo3/sysext/cms/tslib/class.tslib_fe.php (working copy)
* @return void
*/
function connectToDB() {
if ($GLOBALS['TYPO3_DB']->sql_pconnect(TYPO3_db_host, TYPO3_db_username, TYPO3_db_password)) {
try {
$link = $GLOBALS['TYPO3_DB']->sql_pconnect(TYPO3_db_host, TYPO3_db_username, TYPO3_db_password);
} catch (RuntimeException $e) {
if (TYPO3_db) {
// Database is defined, this should normally not happen, user should be informed
throw $e;
}
$link = FALSE;
}
if ($link !== FALSE) {
if (!TYPO3_db) {
$this->printError('No database selected','Database Error');
// Redirects to the Install Tool:
    (1-1/1)