diff options
author | Andrew Dolgov <[email protected]> | 2015-08-11 09:05:39 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-08-11 09:05:39 +0300 |
commit | 023737c75697d176b02c1e150f9406e6a1a8fd8b (patch) | |
tree | 3f75fa3f0f882b52bb6b8163cf3f68c3eec5ec76 /classes | |
parent | 837443630f5aeb25d34cd93d7a7d63442e8ae2b6 (diff) | |
parent | 1f6732b245c9ea77bca9415653d2c993a02c8ca4 (diff) |
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'classes')
-rw-r--r-- | classes/pref/feeds.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 01197d92c..96a234af0 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -991,6 +991,11 @@ class Pref_Feeds extends Handler_Protected { if (!$batch) { + $result = db_query("SELECT feed_url FROM ttrss_feeds WHERE id = " . $feed_id); + $orig_feed_url = db_fetch_result($result, 0, "feed_url"); + + $reset_basic_info = $orig_feed_url != $feed_link; + $this->dbh->query("UPDATE ttrss_feeds SET $category_qpart title = '$feed_title', feed_url = '$feed_link', @@ -1008,6 +1013,12 @@ class Pref_Feeds extends Handler_Protected { feed_language = '$feed_language' WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]); + if ($reset_basic_info) { + require_once "rssfuncs.php"; + + set_basic_feed_info($feed_id); + } + PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_SAVE_FEED, "hook_prefs_save_feed", $feed_id); |