|
@@ 341-349 (lines=9) @@
|
| 338 |
|
// if atom populate rss fields |
| 339 |
|
if ( $this->is_atom() ) { |
| 340 |
|
$this->channel['descripton'] = $this->channel['tagline']; |
| 341 |
|
for ( $i = 0; $i < count($this->items); $i++) { |
| 342 |
|
$item = $this->items[$i]; |
| 343 |
|
if ( isset($item['summary']) ) |
| 344 |
|
$item['description'] = $item['summary']; |
| 345 |
|
if ( isset($item['atom_content'])) |
| 346 |
|
$item['content']['encoded'] = $item['atom_content']; |
| 347 |
|
|
| 348 |
|
$this->items[$i] = $item; |
| 349 |
|
} |
| 350 |
|
} |
| 351 |
|
elseif ( $this->is_rss() ) { |
| 352 |
|
$this->channel['tagline'] = $this->channel['description']; |
|
@@ 353-361 (lines=9) @@
|
| 350 |
|
} |
| 351 |
|
elseif ( $this->is_rss() ) { |
| 352 |
|
$this->channel['tagline'] = $this->channel['description']; |
| 353 |
|
for ( $i = 0; $i < count($this->items); $i++) { |
| 354 |
|
$item = $this->items[$i]; |
| 355 |
|
if ( isset($item['description'])) |
| 356 |
|
$item['summary'] = $item['description']; |
| 357 |
|
if ( isset($item['content']['encoded'] ) ) |
| 358 |
|
$item['atom_content'] = $item['content']['encoded']; |
| 359 |
|
|
| 360 |
|
$this->items[$i] = $item; |
| 361 |
|
} |
| 362 |
|
} |
| 363 |
|
} |
| 364 |
|
|