diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/poche/Url.class.php | 13 | ||||
-rw-r--r-- | inc/poche/define.inc.php | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/inc/poche/Url.class.php b/inc/poche/Url.class.php index 36fdd0f5..3c74fb43 100644 --- a/inc/poche/Url.class.php +++ b/inc/poche/Url.class.php | |||
@@ -65,13 +65,14 @@ class Url | |||
65 | $tidy = tidy_parse_string($html, array(), 'UTF8'); | 65 | $tidy = tidy_parse_string($html, array(), 'UTF8'); |
66 | $tidy->cleanRepair(); | 66 | $tidy->cleanRepair(); |
67 | 67 | ||
68 | //Warning: tidy might fail so, ensure there is still a content | 68 | //Warning: tidy might fail so, ensure there is still a content |
69 | $body = $tidy->body(); | 69 | $body = $tidy->body(); |
70 | 70 | ||
71 | //hasChildren does not seem to work, just check the string | 71 | //hasChildren does not seem to work, just check the string |
72 | //returned (and do not forget to clean the white spaces) | 72 | //returned (and do not forget to clean the white spaces) |
73 | if (preg_replace('/\s+/', '', $body->value) !== "<body></body>") | 73 | if (preg_replace('/\s+/', '', $body->value) !== "<body></body>") { |
74 | $html = $tidy->value; | 74 | $html = $tidy->value; |
75 | } | ||
75 | } | 76 | } |
76 | 77 | ||
77 | $parameters = array(); | 78 | $parameters = array(); |
diff --git a/inc/poche/define.inc.php b/inc/poche/define.inc.php index 80d1f29d..2154ce88 100644 --- a/inc/poche/define.inc.php +++ b/inc/poche/define.inc.php | |||
@@ -22,7 +22,7 @@ define ('REVERT_FORCED_PARAGRAPH_ELEMENTS', FALSE); | |||
22 | define ('DOWNLOAD_PICTURES', FALSE); | 22 | define ('DOWNLOAD_PICTURES', FALSE); |
23 | define ('SHARE_TWITTER', TRUE); | 23 | define ('SHARE_TWITTER', TRUE); |
24 | define ('SHARE_MAIL', TRUE); | 24 | define ('SHARE_MAIL', TRUE); |
25 | define ('SHARE_SHAARLI', TRUE); | 25 | define ('SHARE_SHAARLI', FALSE); |
26 | define ('SHAARLI_URL', 'http://myshaarliurl.com'); | 26 | define ('SHAARLI_URL', 'http://myshaarliurl.com'); |
27 | define ('ABS_PATH', 'assets/'); | 27 | define ('ABS_PATH', 'assets/'); |
28 | define ('TPL', __DIR__ . '/../../tpl'); | 28 | define ('TPL', __DIR__ . '/../../tpl'); |