mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Critical bugFix in themeData.php
Additional check is added, without it there is a critical error "Call to a member function hasCustomData() on null"
This commit is contained in:
parent
d7ef9b1738
commit
953b92ba0a
@ -207,6 +207,11 @@ class ThemeData extends Model
|
|||||||
public static function applyAssetVariablesToCombinerFilters($filters)
|
public static function applyAssetVariablesToCombinerFilters($filters)
|
||||||
{
|
{
|
||||||
$theme = CmsTheme::getActiveTheme();
|
$theme = CmsTheme::getActiveTheme();
|
||||||
|
|
||||||
|
if(!$theme){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!$theme->hasCustomData()) {
|
if (!$theme->hasCustomData()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user