Просмотр исходного кода

! On install attach the database port only during the first time the page is displayed and not subsequently [Topic 470010] - Thanks Yoshi2889 for the report

emanuele 13 лет назад
Родитель
Сommit
465a1712f1
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      other/install.php

+ 5 - 3
other/install.php

@@ -725,11 +725,13 @@ function DatabaseSettings()
 		$incontext['db']['prefix'] = $_POST['db_prefix'];
 	}
 	else
+	{
 		$incontext['db']['prefix'] = 'smf_';
 
-	// Should we use a non standard port?
-	if (!empty($db_port))
-		$incontext['db']['server'] .= ':' . $db_port;
+		// Should we use a non standard port?
+		if (!empty($db_port))
+			$incontext['db']['server'] .= ':' . $db_port;
+	}
 
 	// Are we submitting?
 	if (isset($_POST['db_type']))