From b821fbd38939ba9724584a1df627e1500641a644 Mon Sep 17 00:00:00 2001 From: Sam Serrien Date: Sat, 27 Nov 2021 12:41:39 +0100 Subject: [PATCH] Really disable ray when not active https://github.com/genxbe/kirby3-ray/issues/2 --- index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.php b/index.php index 9a1d029..b7b1777 100755 --- a/index.php +++ b/index.php @@ -52,3 +52,7 @@ }, ], ]); + +if (function_exists('ray') && (!option('debug') && !option('genxbe.ray.enabled'))) { + ray()->disable(); +}