ソースを参照

OPML : Import instantané

Clôture https://github.com/marienfressinaud/FreshRSS/issues/228
Nous perdons le champ description des flux, mais celui-ci pourrait par
exemple être récupéré au premier rafraîchissement du flux si nécessaire
Alexandre Alapetite 12 年 前
コミット
97227a067b
2 ファイル変更3 行追加2 行削除
  1. 0 2
      app/controllers/feedController.php
  2. 3 0
      lib/lib_rss.php

+ 0 - 2
app/controllers/feedController.php

@@ -300,8 +300,6 @@ class feedController extends ActionController {
 		$i = 0;
 		foreach ($feeds as $feed) {
 			try {
-				$feed->load ();
-
 				$values = array (
 					'id' => $feed->id (),
 					'url' => $feed->url (),

+ 3 - 0
lib/lib_rss.php

@@ -169,6 +169,9 @@ function getFeed ($outline, $cat_id) {
 	$feed = new Feed ($url);
 	$feed->_category ($cat_id);
 	$feed->_name ($title);
+	if (isset($outline['htmlUrl'])) {
+		$feed->_website((string)$outline['htmlUrl']);
+	}
 	return $feed;
 }