summaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-13 22:27:22 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-01-13 22:27:22 +0100
commitf720d41cbfb18edc1b0a694a7213682b96befa1f (patch)
tree82d8529c281639c9c02dc04f037bf719fa0576c0 /app/FreshRSS.php
parent7516549f60462a7bb7d5998300491df9d7e5fe82 (diff)
Mise à jour nom thèmes + chargement robuste des thèmes
Renomme : default -> Origine En cas de thème introuvable, charge le thème par défaut, sinon le premier disponible. https://github.com/marienfressinaud/FreshRSS/issues/120
Diffstat (limited to 'app/FreshRSS.php')
-rw-r--r--app/FreshRSS.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index e64a1986b..52f34c6e2 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -114,11 +114,10 @@ class FreshRSS extends Minz_FrontController {
}
private function loadStylesAndScripts ($loginOk) {
- $theme = FreshRSS_Themes::get_infos($this->conf->theme);
+ $theme = FreshRSS_Themes::load($this->conf->theme);
if ($theme) {
- FreshRSS_Themes::setThemeId($this->conf->theme);
foreach($theme['files'] as $file) {
- Minz_View::appendStyle (Minz_Url::display ('/themes/' . $theme['path'] . '/' . $file . '?' . @filemtime(PUBLIC_PATH . '/themes/' . $theme['path'] . '/' . $file)));
+ Minz_View::appendStyle (Minz_Url::display ('/themes/' . $theme['id'] . '/' . $file . '?' . @filemtime(PUBLIC_PATH . '/themes/' . $theme['path'] . '/' . $file)));
}
}