Revert bug HTTP 301 introduced by Refactor feedController

https://github.com/FreshRSS/FreshRSS/commit/e2da6e6e6b871dc3dbc289cdd40ba401a21d8e91
This commit is contained in:
Alexandre Alapetite committed 2015-05-15 15:38:54 +02:00
1 parent f4b0661f3d
commit 5adaf17721
1 file changed
+1 -1
+1 -1
View File
@@ -301,6 +301,7 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
continue;
}
$url = $feed->url(); //For detection of HTTP 301
try {
// Load entries
$feed->load(false);
@@ -311,7 +312,6 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
continue;
}
$url = $feed->url();
$feed_history = $feed->keepHistory();
if ($feed_history == -2) {
// TODO: -2 must be a constant!