Отказ от абсолютных ссылок https://new-combats.com/* к относительным /*. Замена https://img.new-combats.com на //img.new-combats.tech.
This commit is contained in:
@@ -13,7 +13,7 @@ class Database
|
||||
* Singleton.
|
||||
*/
|
||||
private function __construct() {
|
||||
mysql_select_db(Config::get('db_name'), mysql_connect('localhost', Config::get('db_user'), Config::get('db_password')));
|
||||
mysql_select_db(Config::get('db_name'), mysql_connect(Config::get('db_host'), Config::get('db_user'), Config::get('db_password')));
|
||||
mysql_query('SET NAMES utf8mb4');
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class Database
|
||||
public static function pdoinit(): PDO
|
||||
{
|
||||
return new PDO(
|
||||
'mysql:host=localhost;dbname=' . Config::get('db_name'),
|
||||
'mysql:host=' . Config::get('db_host') . ';dbname=' . Config::get('db_name'),
|
||||
Config::get('db_user'),
|
||||
Config::get('db_password'),
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user