diff options
author | Knah Tsaeb <Knah-Tsaeb@knah-tsaeb.org> | 2016-12-07 11:58:25 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-01-05 12:04:02 +0100 |
commit | adc4aee80f7cd3242f65f0b316af2b560a64712c (patch) | |
tree | af62f8bfb21232bc36dd6d12eb5bc2fc35c21146 /application/Utils.php | |
parent | fc11ab2f290a3712b766d78fdbcd354625a35d0a (diff) | |
download | Shaarli-adc4aee80f7cd3242f65f0b316af2b560a64712c.tar.gz Shaarli-adc4aee80f7cd3242f65f0b316af2b560a64712c.tar.zst Shaarli-adc4aee80f7cd3242f65f0b316af2b560a64712c.zip |
Change templates set through administration UI
Diffstat (limited to 'application/Utils.php')
-rw-r--r-- | application/Utils.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/application/Utils.php b/application/Utils.php index 35d65224..7556d3c9 100644 --- a/application/Utils.php +++ b/application/Utils.php | |||
@@ -270,3 +270,13 @@ function normalize_spaces($string) | |||
270 | { | 270 | { |
271 | return preg_replace('/\s{2,}/', ' ', trim($string)); | 271 | return preg_replace('/\s{2,}/', ' ', trim($string)); |
272 | } | 272 | } |
273 | |||
274 | function getAllTheme($raintpl_tpl) | ||
275 | { | ||
276 | $allTheme = glob($raintpl_tpl.'/*', GLOB_ONLYDIR); | ||
277 | foreach ($allTheme as $value) { | ||
278 | $themes[] = str_replace($raintpl_tpl.'/', '', $value); | ||
279 | } | ||
280 | |||
281 | return $themes; | ||
282 | } | ||