mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08:00
Log debug message for failing custom themes directory #1508
This commit is contained in:
parent
f0cf39e297
commit
705822fe7a
1 changed files with 10 additions and 6 deletions
|
@ -56,14 +56,18 @@ trait Themes
|
|||
}
|
||||
|
||||
$sDir = APP_INDEX_ROOT_PATH . '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}/styles.css") || \file_exists("{$sDir}/{$sFile}/styles.less"))) {
|
||||
$aCache[] = $sFile . '@custom';
|
||||
if (\is_dir($sDir)) {
|
||||
if ($rDirH = \opendir($sDir)) {
|
||||
while (($sFile = \readdir($rDirH)) !== false) {
|
||||
if ('.' !== $sFile[0] && \is_dir($sDir . '/' . $sFile)
|
||||
&& (\file_exists("{$sDir}/{$sFile}/styles.css") || \file_exists("{$sDir}/{$sFile}/styles.less"))) {
|
||||
$aCache[] = $sFile . '@custom';
|
||||
}
|
||||
}
|
||||
\closedir($rDirH);
|
||||
} else {
|
||||
$this->logWrite("{$sDir} not readable", \LOG_DEBUG, 'Themes');
|
||||
}
|
||||
\closedir($rDirH);
|
||||
}
|
||||
|
||||
if (\class_exists('OC', false)) {
|
||||
|
|
Loading…
Reference in a new issue