فهرست منبع

Merge branch 'OpmlTitle' into dev

Alexandre Alapetite 10 سال پیش
والد
کامیت
e33b162d9c
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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') {