Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
fix database connection for uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
patkon committed Oct 12, 2021
1 parent 8a89c14 commit e64999d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions acp/core/files.upload-script.php
Expand Up @@ -20,16 +20,13 @@
$db_type = 'mysql';

$database = new Medoo([

'database_type' => 'mysql',
'database_name' => "$database_name",
'server' => "$database_host",
'type' => 'mysql',
'database' => "$database_name",
'host' => "$database_host",
'username' => "$database_user",
'password' => "$database_psw",

'charset' => 'utf8',
'port' => $database_port,

'prefix' => DB_PREFIX
]);

Expand All @@ -51,8 +48,8 @@
define("CONTENT_DB", "$fc_db_content");

$db_content = new Medoo([
'database_type' => 'sqlite',
'database_file' => CONTENT_DB
'type' => 'sqlite',
'database' => CONTENT_DB
]);
}

Expand Down

0 comments on commit e64999d

Please sign in to comment.