From 724671b669d5a0e5a2ffb684ffd4534584c52113 Mon Sep 17 00:00:00 2001 From: rvelices Date: Fri, 10 Nov 2006 01:10:42 +0000 Subject: git-svn-id: http://piwigo.org/svn/trunk@1604 68402e56-0260-453c-a942-63ccdbb3a9ee --- feed.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'feed.php') diff --git a/feed.php b/feed.php index ebc1ef63b..8026b4def 100644 --- a/feed.php +++ b/feed.php @@ -126,7 +126,7 @@ list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();')); include_once(PHPWG_ROOT_PATH.'include/feedcreator.class.php'); -$base_url = 'http://'.$_SERVER["HTTP_HOST"].cookie_path(); +$base_url = get_host_url().cookie_path(); if ( strrpos($base_url, '/') !== strlen($base_url)-1 ) { $base_url .= '/'; @@ -189,7 +189,7 @@ SELECT date_available, ;'; $result = pwg_query($query); $dates = array(); -while ($row = mysql_fetch_array($result)) +while ($row = mysql_fetch_assoc($result)) { array_push($dates, $row); } @@ -232,9 +232,9 @@ SELECT DISTINCT id, path, name, tn_ext LIMIT 0,6 ;'; $result = pwg_query($query); - while ($row = mysql_fetch_array($result)) + while ($row = mysql_fetch_assoc($result)) { - $tn_src = get_thumbnail_src($row['path'], @$row['tn_ext']); + $tn_src = get_thumbnail_url($row); $item->description .= ''; } $item->description .= '...
'; -- cgit v1.2.3