aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
Diffstat (limited to 'inc/poche')
-rwxr-xr-xinc/poche/Poche.class.php2
-rwxr-xr-xinc/poche/Tools.class.php8
2 files changed, 9 insertions, 1 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php
index 7b13c97e..d039de1f 100755
--- a/inc/poche/Poche.class.php
+++ b/inc/poche/Poche.class.php
@@ -733,7 +733,7 @@ class Poche
733 $data = array(); 733 $data = array();
734 $read = 0; 734 $read = 0;
735 735
736 if (Tools:: get_doctype($html)) { 736 if (Tools::get_doctype($html)->innertext == "<!DOCTYPE NETSCAPE-Bookmark-file-1>") {
737 // Firefox-bookmarks HTML 737 // Firefox-bookmarks HTML
738 foreach (array('DL','ul') as $list) { 738 foreach (array('DL','ul') as $list) {
739 foreach ($html->find($list) as $ul) { 739 foreach ($html->find($list) as $ul) {
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php
index 1c554590..f34e8beb 100755
--- a/inc/poche/Tools.class.php
+++ b/inc/poche/Tools.class.php
@@ -420,6 +420,14 @@ final class Tools
420 return str_replace('+', '', $token); 420 return str_replace('+', '', $token);
421 } 421 }
422 422
423 /**
424 *
425 * Returns the doctype for an HTML document (used for Mozilla Bookmarks)
426 * @param simple_html_dom $doc
427 * @return doctype $el
428 *
429 */
430
423 function get_doctype($doc) 431 function get_doctype($doc)
424 { 432 {
425 $els = $doc->find('unknown'); 433 $els = $doc->find('unknown');