From 58f89801b09e6945dd93529843340948ccb10e03 Mon Sep 17 00:00:00 2001 From: Guy Marriott Date: Fri, 12 Jul 2019 15:24:10 +1200 Subject: [PATCH] FIX Ensure constant is accessed correctly --- src/Service/ThemeResolver.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Service/ThemeResolver.php b/src/Service/ThemeResolver.php index c61c6cf..297a2bc 100644 --- a/src/Service/ThemeResolver.php +++ b/src/Service/ThemeResolver.php @@ -60,7 +60,8 @@ class ThemeResolver if ($index > 0) { // 4.0 didn't have support for themes in the public webroot - $publicConstantDefined = defined('SSViewer::PUBLIC_THEME'); + $constant = SSViewer::class . '::PUBLIC_THEME'; + $publicConstantDefined = defined($constant); // Check if the default is public themes $publicDefault = $publicConstantDefined && $themes[0] === SSViewer::PUBLIC_THEME;