Project

General

Profile

Bug #23127 » 15042_v3.patch

Administrator Admin, 2010-10-29 16:35

View differences:

typo3/init.php
// *************************
// Connect to the database
// *************************
if ($TYPO3_DB->sql_pconnect(TYPO3_db_host, TYPO3_db_username, TYPO3_db_password)) {
// jump into Install Tool if database host and database is not defined
if (!TYPO3_db_host && !TYPO3_db) {
t3lib_utility_Http::redirect('install/index.php?mode=123&step=1&password=joh316');
} elseif ($TYPO3_DB->sql_pconnect(TYPO3_db_host, TYPO3_db_username, TYPO3_db_password)) {
if (!TYPO3_db) {
throw new RuntimeException('Database Error: No database selected', time());
} elseif (!$TYPO3_DB->sql_select_db(TYPO3_db)) {
(3-3/3)