Browse Source

Merge branch 'OpmlTitle' into dev

Alexandre Alapetite 10 years ago
parent
commit
e33b162d9c
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') {