change .env

This commit is contained in:
root 2024-08-23 15:03:30 +09:00
parent 4b408758f3
commit f0e8dc942c
2 changed files with 4 additions and 4 deletions

6
.env
View File

@ -1,4 +1,4 @@
[db]
dsn="mysql:host=localhost;dbname=wordpress;charset=UTF8"
id="wordpress"
passwd="12clqkidc@!"
dsn="mysql:host=localhost;dbname=LvZone;charset=UTF8"
id="LvZone"
passwd="Gotjd719248!"

View File

@ -29,7 +29,7 @@ abstract class Model
final public function getDB()
{
if ($this->_db === null) {
$envs = parse_ini_file(APP . DIRECTORY_SEPARATOR . ".env.ini", true);
$envs = parse_ini_file(APP . DIRECTORY_SEPARATOR . ".env", true);
if (!$envs) {
throw new Exception(var_export($envs, true));
}