mirror of
https://github.com/moparisthebest/wallabag
synced 2024-12-02 05:42:17 -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 ('DB_PATH', 'sqlite:./db/poche.sqlite');
|
||||||
define ('ABS_PATH', 'assets/');
|
define ('ABS_PATH', 'assets/');
|
||||||
|
define ('DOWNLOAD_PICTURES', TRUE);
|
||||||
|
|
||||||
include 'db.php';
|
include 'db.php';
|
||||||
include 'functions.php';
|
include 'functions.php';
|
||||||
|
@ -112,7 +112,10 @@ function prepare_url($url, $id)
|
|||||||
{
|
{
|
||||||
$content = $r->articleContent->innerHTML;
|
$content = $r->articleContent->innerHTML;
|
||||||
$parametres['title'] = $r->articleTitle->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;
|
return $parametres;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user