From 64458521c36de87d10f1c726667faeaaa5126840 Mon Sep 17 00:00:00 2001 From: nicosomb Date: Thu, 18 Apr 2013 09:43:08 +0200 Subject: [PATCH] =?utf8?q?possibilit=C3=A9=20de=20d=C3=A9sactiver=20la=20r?= =?utf8?q?=C3=A9cup=C3=A9ration=20des=20images=20d'un=20article?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- inc/config.php | 1 + inc/functions.php | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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/')) { define ('DB_PATH', 'sqlite:./db/poche.sqlite'); define ('ABS_PATH', 'assets/'); +define ('DOWNLOAD_PICTURES', TRUE); include 'db.php'; 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) { $content = $r->articleContent->innerHTML; $parametres['title'] = $r->articleTitle->innerHTML; - $parametres['content'] = filtre_picture($content, $url, $id); + if (DOWNLOAD_PICTURES) { + $content = filtre_picture($content, $url, $id); + } + $parametres['content'] = $content; return $parametres; } } -- 2.41.0