silence various warnings with rss feed functionality
i did not add configuration directives as requested, as it would annoy people that don't *want* to install the rss functionality. Closes: #1099
This commit is contained in:
parent
8f8c888abd
commit
aad2d5ef0d
|
@ -50,8 +50,10 @@ $mem->resetlast();
|
|||
|
||||
# this should work, since the debian package installs it in
|
||||
# /usr/share/php, which is in the include path
|
||||
if (include_once('magpierss/rss_fetch.inc')) {
|
||||
$rss = fetch_rss( variable_get('rss_feed') );
|
||||
$rss_url = variable_get('rss_feed');
|
||||
$inc = @include_once('magpierss/rss_fetch.inc');
|
||||
if ($inc && $rss_url) {
|
||||
$rss = fetch_rss($rss_url);
|
||||
|
||||
if ($rss) {
|
||||
echo "<h2>" . _("Latest news") . "</h2>";
|
||||
|
|
Loading…
Reference in New Issue