From: Cameron Ball Date: Sun, 18 Nov 2018 12:15:57 +0000 (+0800) Subject: Require config file in a cron-happy way X-Git-Url: http://git.cameron1729.xyz/?p=SonOfLokstallBot.git;a=commitdiff_plain;h=f427bc915106311ccb5a1fb393531b4212a44008 Require config file in a cron-happy way --- diff --git a/common.php b/common.php index 5244cfe..c92db49 100644 --- a/common.php +++ b/common.php @@ -3,7 +3,7 @@ namespace Common; require 'vendor/autoload.php'; -require '../../config.php'; +require __DIR__ . '/../../config.php'; use Telegram\Bot\Api; use DateTimeImmutable;