allow deploy in root folder.

This commit is contained in:
Alexander Pankratov 2020-02-19 18:31:45 +03:00
parent 2130d9fa9e
commit a9914cf6a8

View File

@ -76,6 +76,7 @@ foreach ($options['session'] as $session) {
$sessions = array_filter($sessions); $sessions = array_filter($sessions);
foreach ($sessions as $file) { foreach ($sessions as $file) {
$file = str_replace('//','/', $file);
TelegramApiServer\Client::checkOrCreateSessionFolder($file, __DIR__); TelegramApiServer\Client::checkOrCreateSessionFolder($file, __DIR__);
$sessionFiles[$file] = null; $sessionFiles[$file] = null;
} }