mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 23:08:08 +08:00
Bugfix themes in inside Nextcloud by adding webPath
#96
This commit is contained in:
parent
47c1071f3f
commit
dcf4983a7d
2 changed files with 3 additions and 2 deletions
|
@ -81,7 +81,7 @@ export const
|
||||||
prefix = '';
|
prefix = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return prefix + 'themes/' + encodeURI(theme) + '/images/preview.png';
|
return Settings.app('webPath') + prefix + 'themes/' + encodeURI(theme) + '/images/preview.png';
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -651,7 +651,8 @@ class Actions
|
||||||
array(
|
array(
|
||||||
'version' => APP_VERSION,
|
'version' => APP_VERSION,
|
||||||
'token' => $oConfig->Get('security', 'csrf_protection', false) ? Utils::GetCsrfToken() : '',
|
'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(
|
), $bAdmin ? array(
|
||||||
'adminHostUse' => '' !== $oConfig->Get('security', 'admin_panel_host', ''),
|
'adminHostUse' => '' !== $oConfig->Get('security', 'admin_panel_host', ''),
|
||||||
'adminPath' => $oConfig->Get('security', 'admin_panel_key', '') ?: 'admin',
|
'adminPath' => $oConfig->Get('security', 'admin_panel_key', '') ?: 'admin',
|
||||||
|
|
Loading…
Reference in a new issue