Changeset 1604 for trunk/feed.php


Ignore:
Timestamp:
Nov 10, 2006, 2:10:42 AM (17 years ago)
Author:
rvelices
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/feed.php

    r1550 r1604  
    127127include_once(PHPWG_ROOT_PATH.'include/feedcreator.class.php');
    128128
    129 $base_url = 'http://'.$_SERVER["HTTP_HOST"].cookie_path();
     129$base_url = get_host_url().cookie_path();
    130130if ( strrpos($base_url, '/') !== strlen($base_url)-1 )
    131131{
     
    190190$result = pwg_query($query);
    191191$dates = array();
    192 while ($row = mysql_fetch_array($result))
     192while ($row = mysql_fetch_assoc($result))
    193193{
    194194  array_push($dates, $row);
     
    233233;';
    234234  $result = pwg_query($query);
    235   while ($row = mysql_fetch_array($result))
     235  while ($row = mysql_fetch_assoc($result))
    236236  {
    237     $tn_src = get_thumbnail_src($row['path'], @$row['tn_ext']);
     237    $tn_src = get_thumbnail_url($row);
    238238    $item->description .= '<img src="'.$tn_src.'"/>';
    239239  }
Note: See TracChangeset for help on using the changeset viewer.