website rev 1073
get-feeds: fix php syntax (again)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jun 29 11:29:39 2012 +0000 (2012-06-29) |
parents | 58354eeb4cda |
children | 687396ebd605 |
files | lib/get-feeds.php |
line diff
1.1 --- a/lib/get-feeds.php Fri Jun 29 11:23:39 2012 +0000 1.2 +++ b/lib/get-feeds.php Fri Jun 29 11:29:39 2012 +0000 1.3 @@ -24,11 +24,10 @@ 1.4 $cache = '/var/cache/slitaz/website'; 1.5 $entries = 4; 1.6 // no follow all links, but hg commits 1.7 - if ($feed == "wok.xml") { 1.8 - $nofollow = "" 1.9 - } else { 1.10 - $nofollow = " rel='nofollow'" 1.11 - } 1.12 + if ($feed == "wok.xml") 1.13 + $nofollow = ""; 1.14 + else 1.15 + $nofollow = " rel='nofollow'"; 1.16 // have the page displayed even if any xml file 1.17 if ( ! file_exists("$cache/$feed")) { 1.18 echo "</p>\n<div>\n"; 1.19 @@ -44,7 +43,7 @@ 1.20 echo "</p>\n<div>\n<ul>\n"; 1.21 foreach($x->channel->item as $entry) { 1.22 $count = $count + 1; 1.23 - echo " <li><a href='$entry->guid'$nofollow>" . 1.24 + echo " <li><a href='$entry->guid'" . $nofollow . ">" . 1.25 $entry->title . "</a></li>\n"; 1.26 if ($count == $entries) { 1.27 break;