Browse Source

Merge pull request #1112 from Alkarex/OpmlTitle

OPML bug import not using title
Alexandre Alapetite 10 years ago
parent
commit
604c104d08
1 changed files with 4 additions and 0 deletions
  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) {
 	foreach ($outline_xml->children() as $key => $value) {
 		// An outline may contain any number of outline children
 		// An outline may contain any number of outline children
 		if ($key === 'outline') {
 		if ($key === 'outline') {