Commit 2f8072bf authored by Seth Meranda's avatar Seth Meranda
Browse files

Limit news resluts to just 6.

parent ec911cb8
......@@ -175,9 +175,9 @@
<ul id="newsList">
$news = json_decode(file_get_contents("*%20from%20rss%20where%20url%3D''&format=json&diagnostics=true"), true);
foreach($news['query']['results']['item'] as $result){
echo '<li><a href="'.$result['link'].'">'.$result['title'].'</a></li>';
if (++$i == 6) break;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment