From f427bc915106311ccb5a1fb393531b4212a44008 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Sun, 18 Nov 2018 20:15:57 +0800 Subject: [PATCH] Require config file in a cron-happy way --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0