mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
Resolve #875
This commit is contained in:
parent
f79e6f253d
commit
f929c8fb69
2 changed files with 2 additions and 3 deletions
|
@ -81,7 +81,7 @@ export const
|
|||
themePreviewLink = theme => {
|
||||
if (theme.endsWith('@nextcloud')) {
|
||||
theme = theme.slice(0, theme.length - 10).trim();
|
||||
return OC().webroot + '/themes/' + encodeURI(theme) + '/snappymail/preview.png';
|
||||
return parent.OC.webroot + '/themes/' + encodeURI(theme) + '/snappymail/preview.png';
|
||||
}
|
||||
let path = 'webVersionPath';
|
||||
if (theme.endsWith('@custom')) {
|
||||
|
|
|
@ -68,8 +68,7 @@ trait Themes
|
|||
$sDir = \OC::$SERVERROOT . '/themes'; // custom user themes
|
||||
if (\is_dir($sDir) && ($rDirH = \opendir($sDir))) {
|
||||
while (($sFile = \readdir($rDirH)) !== false) {
|
||||
if ('.' !== $sFile[0] && \is_dir($sDir . '/' . $sFile)
|
||||
&& (\file_exists("{$sDir}/{$sFile}/snappymail.css") || \file_exists("{$sDir}/{$sFile}/snappymail.less"))) {
|
||||
if ('.' !== $sFile[0] && \is_dir("{$sDir}/{$sFile}") && \file_exists("{$sDir}/{$sFile}/snappymail/style.css")) {
|
||||
$aCache[] = $sFile . '@nextcloud';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue