]> git.wh0rd.org - tt-rss.git/blobdiff - modules/pref-prefs.php
purge feeds after updating
[tt-rss.git] / modules / pref-prefs.php
index 987a093c0c72b3ef3bde94e5bafe9ac53ffaf863..80a63cb9e6a10d65d26f22d5aece5f4bd9abbf47 100644 (file)
 
                $prefs_blacklist = array("HIDE_FEEDLIST", "SYNC_COUNTERS", "ENABLE_LABELS");
 
+               if (FORCE_ARTICLE_PURGE != 0) {
+                       array_push($prefs_blacklist, "PURGE_OLD_DAYS");
+                       array_push($prefs_blacklist, "PURGE_UNREAD_ARTICLES");
+               }
+
                if ($subop == "change-password") {
 
                        $old_pw = $_POST["OLD_PASSWORD"];