This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via 3a1d1eb3ea9a5a57535d0336da39c8f45e1cebf3 (commit)
from cb6487ffd933bc764883fd2b16cdb4eb150770de (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=3a1d1eb3ea9a5a57535d0336da39c8f45e1cebf3
commit 3a1d1eb3ea9a5a57535d0336da39c8f45e1cebf3
Author: Franck Villaume <[email protected]>
Date: Mon Dec 23 14:51:59 2019 +0100
fix Widget_Rss with debian package.
diff --git a/src/common/widget/Widget_Rss.class.php
b/src/common/widget/Widget_Rss.class.php
index a24c2c8..e0b8dac 100644
--- a/src/common/widget/Widget_Rss.class.php
+++ b/src/common/widget/Widget_Rss.class.php
@@ -3,7 +3,7 @@
* Generic RSS Widget Class
*
* Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights
reserved
- * Copyright 2012,2014, Franck Villaume - TrivialDev
+ * Copyright 2012,2014,2019, Franck Villaume - TrivialDev
* http://fusionforge.org
*
* This file is a part of Fusionforge.
@@ -58,7 +58,11 @@ require_once 'Widget.class.php';
$content .= $HTML->error_msg(_('Cannot
create backend directory. Contact forge administrator.'));
}
}
- $rss = new SimplePie($this->rss_url,
forge_get_config('data_path') .'/rss', null, forge_get_config('sys_proxy'));
+ $rss = new SimplePie();
+ $rss->set_feed_url($this->rss_url);
+ $rss->set_cache_location(forge_get_config('data_path')
.'/rss');
+ $rss->init();
+ $rss->handle_content_type();
$max_items = 10;
$items = array_slice($rss->get_items(), 0, $max_items);
if (count($items)) {
-----------------------------------------------------------------------
Summary of changes:
src/common/widget/Widget_Rss.class.php | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits