A free, self-hostable news aggregator…
Load styles for two JSON cases
Alexandre Alapetite6466fc87ece4
diff --git a/app/FreshRSS.php b/app/FreshRSS.phpindex dd62c1919..4933892bc 100644--- a/app/FreshRSS.php+++ b/app/FreshRSS.php@@ -77,7 +77,7 @@ class FreshRSS extends Minz_FrontController {Minz_Translate::init(FreshRSS_Context::$user_conf->language);}- private static function loadStylesAndScripts() {+ public static function loadStylesAndScripts() {$theme = FreshRSS_Themes::load(FreshRSS_Context::$user_conf->theme);if ($theme) {foreach($theme['files'] as $file) {diff --git a/app/views/entry/bookmark.phtml b/app/views/entry/bookmark.phtmlindex c346d2c4c..6b5a4ed03 100755--- a/app/views/entry/bookmark.phtml+++ b/app/views/entry/bookmark.phtml@@ -13,4 +13,5 @@ $url = Minz_Url::display(array('params' => Minz_Request::params(),));+FreshRSS::loadStylesAndScripts();echo json_encode(array('url' => str_ireplace('&', '&', $url), 'icon' => _i(Minz_Request::param('is_favorite') ? 'non-starred' : 'starred')));diff --git a/app/views/entry/read.phtml b/app/views/entry/read.phtmlindex fabdec9e0..7d0e3de82 100755--- a/app/views/entry/read.phtml+++ b/app/views/entry/read.phtml@@ -13,4 +13,5 @@ $url = Minz_Url::display(array('params' => Minz_Request::params(),));+FreshRSS::loadStylesAndScripts();echo json_encode(array('url' => str_ireplace('&', '&', $url), 'icon' => _i(Minz_Request::param('is_read') ? 'unread' : 'read')));