From 6c7d0949215e1e8ba75d9cb25a86a3bfb9517626 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Tue, 12 Nov 2019 08:52:41 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02577=20Setup=20:=20table=20prefix=20opti?= =?UTF-8?q?on=20is=20hidden=20also=20on=20iTop=20first=20install=20Previou?= =?UTF-8?q?s=20commit=203e785687=20was=20hidding=20it=20only=20on=20iTop?= =?UTF-8?q?=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup/setuputils.class.inc.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/setup/setuputils.class.inc.php b/setup/setuputils.class.inc.php index c32b45836..16faef010 100644 --- a/setup/setuputils.class.inc.php +++ b/setup/setuputils.class.inc.php @@ -911,7 +911,7 @@ class SetupUtils /** * @param \WebPage $oPage - * @param boolean $bAllowDBCreation + * @param boolean $bIsItopInstall true if we are installing, false if we're upgrading * @param string $sDBServer * @param string $sDBUser * @param string $sDBPwd @@ -922,7 +922,7 @@ class SetupUtils * @param string $sNewDBName */ static function DisplayDBParameters( - $oPage, $bAllowDBCreation, $sDBServer, $sDBUser, $sDBPwd, $sDBName, $sDBPrefix, $bTlsEnabled, $sTlsCA, + $oPage, $bIsItopInstall, $sDBServer, $sDBUser, $sDBPwd, $sDBName, $sDBPrefix, $bTlsEnabled, $sTlsCA, $sNewDBName = '' ) { $oPage->add(''); @@ -958,13 +958,18 @@ class SetupUtils $oPage->add(''); $oPage->add('
Database'); $oPage->add(''); - if ($bAllowDBCreation) + if ($bIsItopInstall) { $oPage->add(''); $oPage->add(''); $oPage->add(''); $oPage->add(''); - $oPage->add(''); + $oPage->add(''); + $oPage->add(''); + $oPage->add(''); + $oPage->add(''); + $oPage->add(''); } else {
Use a prefix for the tables:
Use a prefix for the tables: