diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-11-10 01:10:42 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-11-10 01:10:42 +0000 |
commit | 724671b669d5a0e5a2ffb684ffd4534584c52113 (patch) | |
tree | 0bbe2f62f2a325ee0060627e032c8b99b0b98341 /feed.php | |
parent | e5e776a263ba63407893a28df379f2ac8152680c (diff) |
git-svn-id: http://piwigo.org/svn/trunk@1604 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | feed.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 .= '<img src="'.$tn_src.'"/>'; } $item->description .= '...<br/>'; |