Changeset 1821
- Timestamp:
- 10/20/04 16:54:31 (4 years ago)
- Files:
-
- trunk/wp-rss2.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-rss2.php
r1786 r1821 47 47 while( list( $key, $val ) = each( $custom_fields ) ) { 48 48 if( $key == 'enclosure' ) { 49 $enclosure = $val[ 0 ]; 50 $enclosure = split( "\n", $enclosure ); 51 print "<enclosure url='".trim( $enclosure[ 0 ] )."' length='".trim( $enclosure[ 1 ] )."' type='".trim( $enclosure[ 2 ] )."'/>\n"; 49 if (is_array($val)) { 50 foreach($val as $enc) { 51 $enclosure = split( "\n", $enc ); 52 print "<enclosure url='".trim( $enclosure[ 0 ] )."' length='".trim( $enclosure[ 1 ] )."' type='".trim( $enclosure[ 2 ] )."'/>\n"; 53 } 54 } 52 55 } 53 56 }
