aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
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 }