mirror of
https://github.com/twisterarmy/twister-rss-bot.git
synced 2025-02-01 01:24:25 +00:00
init storage folder if not exist
This commit is contained in:
parent
508ae759e7
commit
80be350382
@ -34,6 +34,13 @@ catch (Exception $e)
|
|||||||
// Connect DB
|
// Connect DB
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@mkdir(
|
||||||
|
sprintf(
|
||||||
|
'%s/../../storage',
|
||||||
|
__DIR__
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$database = new PDO(
|
$database = new PDO(
|
||||||
sprintf(
|
sprintf(
|
||||||
'sqlite:%s',
|
'sqlite:%s',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user