diff options
Diffstat (limited to 'inc')
-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 | } |