[Pkg-mozext-commits] [sage-extension] 02/03: opml parsing fix

David Prévot taffit at moszumanska.debian.org
Fri May 1 03:10:29 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag sage_1_2_1
in repository sage-extension.

commit 404b4e311409573a899c5947046f79d9d812326f
Author: Peter Andrews <petea at jhu.edu>
Date:   Wed Aug 11 15:10:30 2004 +0000

    opml parsing fix
---
 src/sage/content/opml/opml.js | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/sage/content/opml/opml.js b/src/sage/content/opml/opml.js
index c02d0c4..a17ad3b 100755
--- a/src/sage/content/opml/opml.js
+++ b/src/sage/content/opml/opml.js
@@ -157,14 +157,18 @@ function createRssItem(aOutlineNode, aRssFolder) {
 	var type = aOutlineNode.getAttribute("type");
 	var title = aOutlineNode.getAttribute("title");
 	if(!title) title = aOutlineNode.getAttribute("text");
-	var xmlUrl = aOutlineNode.getAttribute("xmlUrl");
+	if(aOutlineNode.hasAttribute("xmlUrl")) {
+		var xmlUrl = aOutlineNode.getAttribute("xmlUrl");
+	} else {
+		var xmlUrl = aOutlineNode.getAttribute("xmlurl");
+	}
 		// �s���S�� OUTLINE �͖�������
 	if(type!="rss" && !title && xmlUrl) return;
 
 	if(BMSVC.createBookmarkInContainer.length == 7) { // firefox 0.8 and lower
-		BMSVC.createBookmarkInContainer(title, xmlUrl, null, null, null, aRssFolder, null);
+		BMSVC.createBookmarkInContainer(title, xmlUrl, null, "no-updated", null, aRssFolder, null);
 	} else {
-		BMSVC.createBookmarkInContainer(title, xmlUrl, null, null, null, null, aRssFolder, null);
+		BMSVC.createBookmarkInContainer(title, xmlUrl, null, "no-updated", null, null, aRssFolder, null);
 	}
 	
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git



More information about the Pkg-mozext-commits mailing list