diff options
author | Stefan Edlund | 2014-10-16 15:57:11 +0000 |
---|---|---|
committer | Stefan Edlund | 2014-10-16 15:57:11 +0000 |
commit | ab4160cf6becd9b53ad27a3aae06955b71e912bf (patch) | |
tree | fd69840da038f50eab4a629b0eb4f6480b7d8a20 | |
parent | ae9b7eed2118856413e1beaf7d4d472d76379fa5 (diff) | |
download | stem-ab4160cf6becd9b53ad27a3aae06955b71e912bf.tar.gz stem-ab4160cf6becd9b53ad27a3aae06955b71e912bf.tar.xz stem-ab4160cf6becd9b53ad27a3aae06955b71e912bf.zip |
Add ebola feed to front page
-rw-r--r-- | functions.php | 10 | ||||
-rwxr-xr-x | index.php | 2 |
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; @@ -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> |