Changeset 4121 for trunk/www/includes


Ignore:
Timestamp:
Dec 5, 2003, 11:47:52 PM (17 years ago)
Author:
mij
Message:

Fix create_rss() so it actually outputs usable RSS feeds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/includes/functions.inc

    r3981 r4121  
    11<?php
    22
    3 # $Id: functions.inc,v 1.1 2003/11/19 01:59:08 mij Exp $
     3# $Id: functions.inc,v 1.2 2003/12/05 23:47:52 mij Exp $
    44# Copyright (c) 2003, OpenDarwin
    55
     
    2626
    2727  $open = fopen("$DOCUMENT_ROOT/dp_news.xml", "w+");
    28   $rssdate = substr_replace(date("Y-m-d\TH:i:s0", time()),':', -2, 0);
     28  $rssdate = substr_replace(date("Y-m-d\TH:i:sO", time()),':', -2, 0);
    2929
    3030  $rss = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n";
     
    4444  $rss .= "    <dc:rights>Copyright 2002-2003</dc:rights>\n";
    4545  $rss .= "    <dc:date>$rssdate</dc:date>\n";
    46   $rss .= "    <admin:errorReportsTo rdf:resource\"mailto:mij@opendarwin.org\" />\n";
     46  $rss .= "    <admin:errorReportsTo rdf:resource=\"mailto:mij@opendarwin.org\" />\n";
    4747
    4848  if(mysql_num_rows($result) > 0) {
Note: See TracChangeset for help on using the changeset viewer.