mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03: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,7 +56,8 @@ trait Themes
|
||||||
}
|
}
|
||||||
|
|
||||||
$sDir = APP_INDEX_ROOT_PATH . 'themes'; // custom user themes
|
$sDir = APP_INDEX_ROOT_PATH . 'themes'; // custom user themes
|
||||||
if (\is_dir($sDir) && ($rDirH = \opendir($sDir))) {
|
if (\is_dir($sDir)) {
|
||||||
|
if ($rDirH = \opendir($sDir)) {
|
||||||
while (($sFile = \readdir($rDirH)) !== false) {
|
while (($sFile = \readdir($rDirH)) !== false) {
|
||||||
if ('.' !== $sFile[0] && \is_dir($sDir . '/' . $sFile)
|
if ('.' !== $sFile[0] && \is_dir($sDir . '/' . $sFile)
|
||||||
&& (\file_exists("{$sDir}/{$sFile}/styles.css") || \file_exists("{$sDir}/{$sFile}/styles.less"))) {
|
&& (\file_exists("{$sDir}/{$sFile}/styles.css") || \file_exists("{$sDir}/{$sFile}/styles.less"))) {
|
||||||
|
|
@ -64,6 +65,9 @@ trait Themes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\closedir($rDirH);
|
\closedir($rDirH);
|
||||||
|
} else {
|
||||||
|
$this->logWrite("{$sDir} not readable", \LOG_DEBUG, 'Themes');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (\class_exists('OC', false)) {
|
if (\class_exists('OC', false)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue