Log in with username/password: lyceum/lyceum

Changeset 1285

Show
Ignore:
Timestamp:
02/10/09 21:16:10 (9 months ago)
Author:
jjb
Message:

fixed content type for site-wide atom feed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/src/lyceum/atom.php

    r1173 r1285  
    1717$cdata_close = ']]>'; 
    1818 
     19header('Content-type: application/atom+xml'); 
     20 
    1921?> 
    2022<feed 
     
    2931   <generator uri="http://lyceum.ibiblio.org/" version="<?php echo $wp_version ?>">Lyceum</generator> 
    3032 
    31    <link rel="alternate" type="text/html" href="<?php echo LURL ?>" /> 
     33   <link rel="alternate" type="application/atom+xml" href="<?php echo LURL ?>" /> 
    3234   <id><?php echo LURL ?>/feed/atom.php/</id> 
    3335   <link rel="self" type="application/atom+xml" href="<?php echo LURL ?>/atom.php" /> 
     
    4042      </author> 
    4143      <title type="html"><?php echo $cdata_open . $p->post_title . $cdata_close ?></title> 
    42       <link rel="alternate" type="text/html" href="<?php echo $p->guid; ?>" /> 
     44      <link rel="alternate" type="application/atom+xml" href="<?php echo $p->guid; ?>" /> 
    4345      <id><?php echo $p->guid; ?></id> 
    4446      <published><?php echo rfc3339($p->post_date_gmt) ?></published> 
Log in with username/password: lyceum/lyceum