From 095a3b70f86d8c72da4be8e2f49c8a740a7e6e3d Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Thu, 11 Feb 2021 11:19:07 +0000 Subject: [PATCH] NEW: Provide helpers for isDev/isTest/isLive in templates --- src/Control/Director.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Control/Director.php b/src/Control/Director.php index f75d8182d..56c614a6b 100644 --- a/src/Control/Director.php +++ b/src/Control/Director.php @@ -1134,6 +1134,9 @@ class Director implements TemplateGlobalProvider return [ 'absoluteBaseURL', 'baseURL', + 'isDev', + 'isTest', + 'isLive', 'is_ajax', 'isAjax' => 'is_ajax', 'BaseHref' => 'absoluteBaseURL', //@deprecated 3.0