aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/ThemeUtils.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam+github@flibidi.net>2017-09-30 10:56:56 +0200
committerGitHub <noreply@github.com>2017-09-30 10:56:56 +0200
commit7c670b39a2505f625066e7d87e1536fc02e9d6fc (patch)
tree7ffedc72fbf35c7b2721afcf163250a01fa13059 /application/ThemeUtils.php
parenta59bbf50d7530d7e82a91896a210b9da49cb1568 (diff)
parent8c322aaba197bab1a9992b731db80d9faa133bc4 (diff)
downloadShaarli-7c670b39a2505f625066e7d87e1536fc02e9d6fc.tar.gz
Shaarli-7c670b39a2505f625066e7d87e1536fc02e9d6fc.tar.zst
Shaarli-7c670b39a2505f625066e7d87e1536fc02e9d6fc.zip
Merge pull request #975 from virtualtam/robustness
Improve robustness for zlib and file operations
Diffstat (limited to 'application/ThemeUtils.php')
-rw-r--r--application/ThemeUtils.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/ThemeUtils.php b/application/ThemeUtils.php
index 2718ed13..16f2f6a2 100644
--- a/application/ThemeUtils.php
+++ b/application/ThemeUtils.php
@@ -22,6 +22,7 @@ class ThemeUtils
22 */ 22 */
23 public static function getThemes($tplDir) 23 public static function getThemes($tplDir)
24 { 24 {
25 $tplDir = rtrim($tplDir, '/');
25 $allTheme = glob($tplDir.'/*', GLOB_ONLYDIR); 26 $allTheme = glob($tplDir.'/*', GLOB_ONLYDIR);
26 $themes = []; 27 $themes = [];
27 foreach ($allTheme as $value) { 28 foreach ($allTheme as $value) {