Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Edlund2014-10-16 15:57:11 +0000
committerStefan Edlund2014-10-16 15:57:11 +0000
commitab4160cf6becd9b53ad27a3aae06955b71e912bf (patch)
treefd69840da038f50eab4a629b0eb4f6480b7d8a20
parentae9b7eed2118856413e1beaf7d4d472d76379fa5 (diff)
downloadstem-ab4160cf6becd9b53ad27a3aae06955b71e912bf.tar.gz
stem-ab4160cf6becd9b53ad27a3aae06955b71e912bf.tar.xz
stem-ab4160cf6becd9b53ad27a3aae06955b71e912bf.zip
Add ebola feed to front page
-rw-r--r--functions.php10
-rwxr-xr-xindex.php2
2 files changed, 6 insertions, 6 deletions
diff --git a/functions.php b/functions.php
index 30635b9..c3a0f0b 100644
--- a/functions.php
+++ b/functions.php
@@ -13,10 +13,10 @@
#
# Begin: page-specific settings. Change these.
- function getFeedContents()
+ function getFeedContents(rssUrl, )
{
- $cacheFile = $_SERVER['DOCUMENT_ROOT'] . "/stem/data/rss_cache.xml";
- $rssUrl = "http://www.eclipse.org/forums/rdf.php?mode=m&l=1&basic=1&frm=72&n=5";
+# $cacheFile = $_SERVER['DOCUMENT_ROOT'] . "/stem/data/rss_cache.xml";
+# $rssUrl = "http://www.eclipse.org/forums/rdf.php?mode=m&l=1&basic=1&frm=72&n=5";
$rssData = "";
@@ -38,13 +38,13 @@
}
- function getRssFeed()
+ function getRssFeed($rssUrl, $cacheFile)
{
//$rssFilePath = $_SERVER['DOCUMENT_ROOT'] . "/stem/feeds/news.xml";
- $xmlData = getFeedContents();
+ $xmlData = getFeedContents($rssUrl, $cacheFile);
if (empty($xmlData)) {
return;
diff --git a/index.php b/index.php
index 64252b6..c697550 100755
--- a/index.php
+++ b/index.php
@@ -126,7 +126,7 @@ ob_start();
</div>-->
<div class="sideitem">
<h6>News</h6>
- <?php getRssFeed(); ?>
+ <?php getRssFeed("http://www.eclipse.org/forums/rdf.php?mode=m&l=1&basic=1&frm=72&n=5", $_SERVER['DOCUMENT_ROOT'] . "/stem/data/rss_cache.xml"); ?>
<br.>
<i><a href="http://www.eclipse.org/forums/index.php?t=thread&frm_id=72">more...</a></i>
</div>

Back to the top