PHP 8 compatibility fix for installing themes
This commit is contained in:
parent
c416ea82d3
commit
323860150d
@ -86,7 +86,7 @@ if (($serendipity['GET']['adminAction'] == 'install' || $serendipity['GET']['adm
|
||||
// template_engine was set by default to default, which screws up the fallback chain (to the default-template first)
|
||||
// The "Engine" now only applies to FRONTEND themes. Backend themes will always fall back to our default backend theme only, to ensure proper backend operation.
|
||||
serendipity_set_config_var('template_engine', null);
|
||||
if ($themeInfo['engine']) {
|
||||
if ($themeInfo['engine'] ?? false) {
|
||||
serendipity_set_config_var('template_engine', $themeInfo['engine']);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user