aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-18 09:43:08 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-18 09:43:08 +0200
commit64458521c36de87d10f1c726667faeaaa5126840 (patch)
tree4e59691b3e000e999ab4548b09d20802cecf30a7 /inc
parent435bbd56acd06b61299300a80272ca000f44c188 (diff)
downloadwallabag-64458521c36de87d10f1c726667faeaaa5126840.tar.gz
wallabag-64458521c36de87d10f1c726667faeaaa5126840.tar.zst
wallabag-64458521c36de87d10f1c726667faeaaa5126840.zip
possibilité de désactiver la récupération des images d'un article
Diffstat (limited to 'inc')
-rw-r--r--inc/config.php1
-rw-r--r--inc/functions.php5
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
15define ('DB_PATH', 'sqlite:./db/poche.sqlite'); 15define ('DB_PATH', 'sqlite:./db/poche.sqlite');
16define ('ABS_PATH', 'assets/'); 16define ('ABS_PATH', 'assets/');
17define ('DOWNLOAD_PICTURES', TRUE);
17 18
18include 'db.php'; 19include 'db.php';
19include 'functions.php'; 20include '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 }