Jelajahi Sumber

OPML bug import not using title

Fix https://github.com/FreshRSS/FreshRSS/issues/1048
Alexandre Alapetite 10 tahun lalu
induk
melakukan
9d1f35d4b8
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      lib/lib_opml.php

+ 4 - 0
lib/lib_opml.php

@@ -105,6 +105,10 @@ function libopml_parse_outline($outline_xml, $strict = true) {
 		);
 	}
 
+	if (empty($outline['text']) && isset($outline['title'])) {
+		$outline['text'] = $outline['title'];
+	}
+
 	foreach ($outline_xml->children() as $key => $value) {
 		// An outline may contain any number of outline children
 		if ($key === 'outline') {