|
@@ 865-875 (lines=11) @@
|
| 862 |
|
if ($xml_format == 'rss' || $xml_format == 'rss2') |
| 863 |
|
{ |
| 864 |
|
// Only one attachment allowed in RSS. |
| 865 |
|
if ($loaded_attachments !== null) |
| 866 |
|
{ |
| 867 |
|
$attachment = array_pop($loaded_attachments); |
| 868 |
|
$enclosure = array( |
| 869 |
|
'url' => fix_possible_url($scripturl . '?action=dlattach;topic=' . $attachment['topic'] . '.0;attach=' . $attachment['id_attach']), |
| 870 |
|
'length' => $attachment['filesize'], |
| 871 |
|
'type' => $attachment['mime_type'], |
| 872 |
|
); |
| 873 |
|
} |
| 874 |
|
else |
| 875 |
|
$enclosure = null; |
| 876 |
|
|
| 877 |
|
$data[] = array( |
| 878 |
|
'tag' => 'item', |
|
@@ 1275-1285 (lines=11) @@
|
| 1272 |
|
if ($xml_format == 'rss' || $xml_format == 'rss2') |
| 1273 |
|
{ |
| 1274 |
|
// Only one attachment allowed in RSS. |
| 1275 |
|
if ($loaded_attachments !== null) |
| 1276 |
|
{ |
| 1277 |
|
$attachment = array_pop($loaded_attachments); |
| 1278 |
|
$enclosure = array( |
| 1279 |
|
'url' => fix_possible_url($scripturl . '?action=dlattach;topic=' . $attachment['topic'] . '.0;attach=' . $attachment['id_attach']), |
| 1280 |
|
'length' => $attachment['filesize'], |
| 1281 |
|
'type' => $attachment['mime_type'], |
| 1282 |
|
); |
| 1283 |
|
} |
| 1284 |
|
else |
| 1285 |
|
$enclosure = null; |
| 1286 |
|
|
| 1287 |
|
$data[] = array( |
| 1288 |
|
'tag' => 'item', |