mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
FIX Ensure constant is accessed correctly
This commit is contained in:
parent
9feef185dc
commit
58f89801b0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user