X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FThemeUtils.php;h=16f2f6a2742c701f79d671bcf4d89359584fc4d9;hb=4fa9a3c5d83a1024678596a586afe5df14a345b5;hp=2718ed138cf7215609eb61d39351150fe84c8515;hpb=9977c418d6d0de9e22e4ec276e7d476e184b5d01;p=github%2Fshaarli%2FShaarli.git 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 */ public static function getThemes($tplDir) { + $tplDir = rtrim($tplDir, '/'); $allTheme = glob($tplDir.'/*', GLOB_ONLYDIR); $themes = []; foreach ($allTheme as $value) {