From ba2e294fe9088c8bacc395d5999aa8fc97bea178 Mon Sep 17 00:00:00 2001 From: Yuriy Pikhtarev Date: Fri, 5 May 2017 00:58:24 +0300 Subject: [PATCH] __DIR__ constant can be used. (cherry picked from commit 891ef41) --- cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cron.php b/cron.php index a6b116cb0..65db74530 100644 --- a/cron.php +++ b/cron.php @@ -24,6 +24,6 @@ */ define('START_CRON', true); -define('BB_ROOT', dirname(__FILE__) . '/'); +define('BB_ROOT', __DIR__ . '/'); require __DIR__ . '/common.php';