summaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-09-17 21:19:48 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-09-17 21:19:48 +0200
commitde5c0bc00962175198aeefabefa514415a448d61 (patch)
tree60e7af90637391fc82950772e066542007cb96fd /app/FreshRSS.php
parentfc86d14ade745ca65f8ec8e6eaa0fb4c817961a2 (diff)
Misc minor details + a few i18n corrections
https://github.com/marienfressinaud/FreshRSS/issues/618
Diffstat (limited to 'app/FreshRSS.php')
-rw-r--r--app/FreshRSS.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index 347b8392f..cdf8962cb 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -143,11 +143,12 @@ class FreshRSS extends Minz_FrontController {
$theme = FreshRSS_Themes::load($this->conf->theme);
if ($theme) {
foreach($theme['files'] as $file) {
- $theme_id = $theme['id'];
- $filename = $file;
- if ($file[0] == '_') {
+ if ($file[0] === '_') {
$theme_id = 'base-theme';
$filename = substr($file, 1);
+ } else {
+ $theme_id = $theme['id'];
+ $filename = $file;
}
$filetime = @filemtime(PUBLIC_PATH . '/themes/' . $theme_id . '/' . $filename);
Minz_View::appendStyle(Minz_Url::display(