mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-27 03:12:21 -05:00
possibilité de désactiver la récupération des images d'un article
This commit is contained in:
parent
435bbd56ac
commit
64458521c3
@ -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';
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user