cvs: pearweb /public_html/feeds feeds.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sun, 13 Jan 2008 16:57:31 +0000 |
| Subject: | cvs: pearweb /public_html/feeds feeds.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-50281@lists.php.net to get a copy of this message | ||
dufuz Sun Jan 13 16:57:31 2008 UTC
Modified files:
/pearweb/public_html/feeds feeds.php
Log:
emails to constants
http://cvs.php.net/viewvc.cgi/pearweb/public_html/feeds/feeds.php?r1=1.13&r2=1.14&diff_format=u
Index: pearweb/public_html/feeds/feeds.php
diff -u pearweb/public_html/feeds/feeds.php:1.13 pearweb/public_html/feeds/feeds.php:1.14
--- pearweb/public_html/feeds/feeds.php:1.13 Sat Aug 25 20:18:55 2007
+++ pearweb/public_html/feeds/feeds.php Sun Jan 13 16:57:31 2008
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: Pierre-Alain Joye <pajoye@php.net> |
+----------------------------------------------------------------------+
- $Id: feeds.php,v 1.13 2007/08/25 20:18:55 dufuz Exp $
+ $Id: feeds.php,v 1.14 2008/01/13 16:57:31 dufuz Exp $
*/
require_once 'pepr/pepr.php';
@@ -30,7 +30,7 @@
function rss_create($items, $channel_title, $channel_description, $dest_file = false) {
if (is_array($items) && count($items) > 0) {
- $rss_top = <<<EOT
+ $rss_top = '
<?xml version="1.0" encoding="iso-8859-1"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
@@ -38,12 +38,11 @@
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
>
- <channel rdf:about="http://pear.php.net/">
- <link>http://pear.php.net/</link>
- <dc:creator>pear-webmaster@lists.php.net</dc:creator>
- <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
- <dc:language>en-us</dc:language>
-EOT;
+ <channel rdf:about="http://' . PEAR_CHANNELNAME .
'">
+ <link>http:// ' . PEAR_CHANNELNAME . '/</link>
+ <dc:creator>' . PEAR_WEBMASTER_EMAIL . '</dc:creator>
+ <dc:publisher>' . PEAR_WEBMASTER_EMAIL . '</dc:publisher>
+ <dc:language>en-us</dc:language>';
$items_xml = "<items>
<rdf:Seq>";