aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Utils.php
diff options
context:
space:
mode:
authorKnah Tsaeb <Knah-Tsaeb@knah-tsaeb.org>2016-12-07 11:58:25 +0100
committerArthurHoaro <arthur@hoa.ro>2017-01-05 12:04:02 +0100
commitadc4aee80f7cd3242f65f0b316af2b560a64712c (patch)
treeaf62f8bfb21232bc36dd6d12eb5bc2fc35c21146 /application/Utils.php
parentfc11ab2f290a3712b766d78fdbcd354625a35d0a (diff)
downloadShaarli-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.php10
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
274function 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}