master
Jean-Christian Paul Denis 2023-04-16 01:15:55 +02:00
parent b5e0d8c6b6
commit 36b96fda77
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class Backend extends dcNsProcess
// add "unsinstall" button to modules list
'adminModulesListGetActionsV2' => function (adminModulesList $list, dcModuleDefine $define): string {
// do not unsintall current theme
if ($define->get('type') == 'theme' && $define->getId() == dcCore::app()->blog->settings->system->theme) {
if ($define->get('type') == 'theme' && $define->getId() == dcCore::app()->blog?->settings->get('system')->get('theme')) {
return '';
}