diff options
| author | 2022-12-31 14:57:37 +0000 | |
|---|---|---|
| committer | 2022-12-31 15:57:37 +0100 | |
| commit | 914bc62aef6221b79ede687cffb336a53a12400a (patch) | |
| tree | b5c34b96de428e7cbd6addb4d027dc597fc68afc /app/Controllers/subscriptionController.php | |
| parent | de5f70c68467708fe251fb8a688282f0c40e109b (diff) | |
fix: favicon after editing feed url (#4975)
refactor: replace `$cat` variable by the `$values['category']` values
Diffstat (limited to 'app/Controllers/subscriptionController.php')
| -rw-r--r-- | app/Controllers/subscriptionController.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/Controllers/subscriptionController.php b/app/Controllers/subscriptionController.php index 4a63d1ee4..315187aaa 100644 --- a/app/Controllers/subscriptionController.php +++ b/app/Controllers/subscriptionController.php @@ -118,8 +118,6 @@ class FreshRSS_subscription_Controller extends FreshRSS_ActionController { $httpAuth = $user . ':' . $pass; } - $cat = intval(Minz_Request::param('category', 0)); - $feed->_ttl(intval(Minz_Request::param('ttl', FreshRSS_Feed::TTL_DEFAULT))); $feed->_mute(boolval(Minz_Request::param('mute', false))); @@ -230,7 +228,7 @@ class FreshRSS_subscription_Controller extends FreshRSS_ActionController { 'description' => sanitizeHTML(Minz_Request::param('description', '', true)), 'website' => checkUrl(Minz_Request::param('website', '')), 'url' => checkUrl(Minz_Request::param('url', '')), - 'category' => $cat, + 'category' => intval(Minz_Request::param('category', 0)), 'pathEntries' => Minz_Request::param('path_entries', ''), 'priority' => intval(Minz_Request::param('priority', FreshRSS_Feed::PRIORITY_MAIN_STREAM)), 'httpAuth' => $httpAuth, @@ -259,7 +257,10 @@ class FreshRSS_subscription_Controller extends FreshRSS_ActionController { } if ($feedDAO->updateFeed($id, $values) !== false) { - $feed->_categoryId($cat); + $feed->_categoryId($values['category']); + // update url and website values for faviconPrepare + $feed->_url($values['url'], false); + $feed->_website($values['website'], false); $feed->faviconPrepare(); Minz_Request::good(_t('feedback.sub.feed.updated'), $url_redirect); |
