mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fetch prefix from config at installation instead of a hardcoded value
This commit is contained in:
parent
543537ef29
commit
c105268a1d
1 changed files with 3 additions and 3 deletions
|
|
@ -82,10 +82,10 @@ class OC_Setup {
|
|||
$dbpass = $options['dbpass'];
|
||||
$dbname = $options['dbname'];
|
||||
$dbhost = $options['dbhost'];
|
||||
$dbtableprefix = 'oc_';
|
||||
$dbtableprefix = OC_Config::gsetValue('dbtableprefix','oc_');
|
||||
OC_Config::setValue('dbname', $dbname);
|
||||
OC_Config::setValue('dbhost', $dbhost);
|
||||
OC_Config::setValue('dbtableprefix', 'oc_');
|
||||
OC_Config::setValue('dbtableprefix', $dbtableprefix);
|
||||
|
||||
//check if the database user has admin right
|
||||
$connection = @mysql_connect($dbhost, $dbuser, $dbpass);
|
||||
|
|
@ -135,7 +135,7 @@ class OC_Setup {
|
|||
$dbpass = $options['dbpass'];
|
||||
$dbname = $options['dbname'];
|
||||
$dbhost = $options['dbhost'];
|
||||
$dbtableprefix = 'oc_';
|
||||
$dbtableprefix = OC_Config::getValue('dbtableprefix','oc_');
|
||||
OC_CONFIG::setValue('dbname', $dbname);
|
||||
OC_CONFIG::setValue('dbhost', $dbhost);
|
||||
OC_CONFIG::setValue('dbtableprefix', $dbtableprefix);
|
||||
|
|
|
|||
Loading…
Reference in a new issue