Skip to content

A free, self-hostable news aggregator…

Charge lib_phpQuery uniquement au besoin

Alexandre Alapetite85e7ac96a10f
diff --git a/app/App_FrontController.php b/app/App_FrontController.php
index 176677781..0721dba45 100644
--- a/app/App_FrontController.php
+++ b/app/App_FrontController.php
@@ -19,7 +19,6 @@ class App_FrontController extends FrontController {
}
private function loadLibs () {
- require (LIB_PATH . '/lib_phpQuery.php');
require (LIB_PATH . '/lib_rss.php');
require (LIB_PATH . '/SimplePie_autoloader.php');
}
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index 08e65a45f..93fa48af0 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -159,6 +159,8 @@ function getFeed ($outline, $cat_id) {
/* permet de récupérer le contenu d'un article pour un flux qui n'est pas complet */
function get_content_by_parsing ($url, $path) {
+ require_once (LIB_PATH . '/lib_phpQuery.php');
+
$html = file_get_contents ($url);
if ($html) {