aboutsummaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
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(