diff options
author | nicosomb <nicolas@loeuillet.org> | 2013-04-18 09:43:08 +0200 |
---|---|---|
committer | nicosomb <nicolas@loeuillet.org> | 2013-04-18 09:43:08 +0200 |
commit | 64458521c36de87d10f1c726667faeaaa5126840 (patch) | |
tree | 4e59691b3e000e999ab4548b09d20802cecf30a7 | |
parent | 435bbd56acd06b61299300a80272ca000f44c188 (diff) | |
download | wallabag-64458521c36de87d10f1c726667faeaaa5126840.tar.gz wallabag-64458521c36de87d10f1c726667faeaaa5126840.tar.zst wallabag-64458521c36de87d10f1c726667faeaaa5126840.zip |
possibilité de désactiver la récupération des images d'un article
-rw-r--r-- | inc/config.php | 1 | ||||
-rw-r--r-- | inc/functions.php | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/inc/config.php b/inc/config.php index a7904def..4db3cf40 100644 --- a/inc/config.php +++ b/inc/config.php | |||
@@ -14,6 +14,7 @@ if (!is_dir('db/')) { | |||
14 | 14 | ||
15 | define ('DB_PATH', 'sqlite:./db/poche.sqlite'); | 15 | define ('DB_PATH', 'sqlite:./db/poche.sqlite'); |
16 | define ('ABS_PATH', 'assets/'); | 16 | define ('ABS_PATH', 'assets/'); |
17 | define ('DOWNLOAD_PICTURES', TRUE); | ||
17 | 18 | ||
18 | include 'db.php'; | 19 | include 'db.php'; |
19 | include 'functions.php'; | 20 | include 'functions.php'; |
diff --git a/inc/functions.php b/inc/functions.php index b7c7baff..f572d983 100644 --- a/inc/functions.php +++ b/inc/functions.php | |||
@@ -112,7 +112,10 @@ function prepare_url($url, $id) | |||
112 | { | 112 | { |
113 | $content = $r->articleContent->innerHTML; | 113 | $content = $r->articleContent->innerHTML; |
114 | $parametres['title'] = $r->articleTitle->innerHTML; | 114 | $parametres['title'] = $r->articleTitle->innerHTML; |
115 | $parametres['content'] = filtre_picture($content, $url, $id); | 115 | if (DOWNLOAD_PICTURES) { |
116 | $content = filtre_picture($content, $url, $id); | ||
117 | } | ||
118 | $parametres['content'] = $content; | ||
116 | return $parametres; | 119 | return $parametres; |
117 | } | 120 | } |
118 | } | 121 | } |