diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-01-03 12:01:25 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-01-05 16:16:27 +0100 |
commit | 04a0e8ea34c241fdf6bd30b11f5242656f9cd1c2 (patch) | |
tree | 20c99e86f3fc862f90d3d7475f4a49b89557a7d4 /application/ApplicationUtils.php | |
parent | a0df06517bada0f811b464017ce385290e02c2bf (diff) | |
download | Shaarli-04a0e8ea34c241fdf6bd30b11f5242656f9cd1c2.tar.gz Shaarli-04a0e8ea34c241fdf6bd30b11f5242656f9cd1c2.tar.zst Shaarli-04a0e8ea34c241fdf6bd30b11f5242656f9cd1c2.zip |
Updater: keep custom theme preference with the new theme setting
Diffstat (limited to 'application/ApplicationUtils.php')
-rw-r--r-- | application/ApplicationUtils.php | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/application/ApplicationUtils.php b/application/ApplicationUtils.php index cc009a1d..a0f482b0 100644 --- a/application/ApplicationUtils.php +++ b/application/ApplicationUtils.php | |||
@@ -195,24 +195,4 @@ class ApplicationUtils | |||
195 | 195 | ||
196 | return $errors; | 196 | return $errors; |
197 | } | 197 | } |
198 | |||
199 | /** | ||
200 | * Get a list of available themes. | ||
201 | * | ||
202 | * It will return the name of any directory present in the template folder. | ||
203 | * | ||
204 | * @param string $tplDir Templates main directory. | ||
205 | * | ||
206 | * @return array List of theme names. | ||
207 | */ | ||
208 | public static function getThemes($tplDir) | ||
209 | { | ||
210 | $allTheme = glob($tplDir.'/*', GLOB_ONLYDIR); | ||
211 | $themes = []; | ||
212 | foreach ($allTheme as $value) { | ||
213 | $themes[] = str_replace($tplDir.'/', '', $value); | ||
214 | } | ||
215 | |||
216 | return $themes; | ||
217 | } | ||
218 | } | 198 | } |