Bugfix themes in inside Nextcloud by adding webPath #96

This commit is contained in:
the-djmaze 2022-10-11 14:50:37 +02:00
parent 47c1071f3f
commit dcf4983a7d
2 changed files with 3 additions and 2 deletions

View file

@ -81,7 +81,7 @@ export const
prefix = '';
}
return prefix + 'themes/' + encodeURI(theme) + '/images/preview.png';
return Settings.app('webPath') + prefix + 'themes/' + encodeURI(theme) + '/images/preview.png';
},
/**

View file

@ -651,7 +651,8 @@ class Actions
array(
'version' => APP_VERSION,
'token' => $oConfig->Get('security', 'csrf_protection', false) ? Utils::GetCsrfToken() : '',
'languages' => \SnappyMail\L10n::getLanguages(false)
'languages' => \SnappyMail\L10n::getLanguages(false),
'webPath' => \RainLoop\Utils::WebPath()
), $bAdmin ? array(
'adminHostUse' => '' !== $oConfig->Get('security', 'admin_panel_host', ''),
'adminPath' => $oConfig->Get('security', 'admin_panel_key', '') ?: 'admin',