import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
* @package Zend_Feed
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Rss.php 16205 2009-06-21 19:08:45Z thomas $
|
||||
* @version $Id: Rss.php 19133 2009-11-20 19:44:09Z padraic $
|
||||
*/
|
||||
|
||||
|
||||
@ -82,7 +82,7 @@ class Zend_Feed_Rss extends Zend_Feed_Abstract
|
||||
// Find the base channel element and create an alias to it.
|
||||
$rdfTags = $this->_element->getElementsByTagNameNS('http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'RDF');
|
||||
if ($rdfTags->length != 0) {
|
||||
$this->_element = $rdfTags->item(0);
|
||||
$this->_element = $rdfTags->item(0);
|
||||
} else {
|
||||
$this->_element = $this->_element->getElementsByTagName('channel')->item(0);
|
||||
}
|
||||
@ -147,11 +147,11 @@ class Zend_Feed_Rss extends Zend_Feed_Abstract
|
||||
$channel->appendChild($description);
|
||||
|
||||
$pubdate = isset($array->lastUpdate) ? $array->lastUpdate : time();
|
||||
$pubdate = $this->_element->createElement('pubDate', gmdate('r', $pubdate));
|
||||
$pubdate = $this->_element->createElement('pubDate', date(DATE_RSS, $pubdate));
|
||||
$channel->appendChild($pubdate);
|
||||
|
||||
if (isset($array->published)) {
|
||||
$lastBuildDate = $this->_element->createElement('lastBuildDate', gmdate('r', $array->published));
|
||||
$lastBuildDate = $this->_element->createElement('lastBuildDate', date(DATE_RSS, $array->published));
|
||||
$channel->appendChild($lastBuildDate);
|
||||
}
|
||||
|
||||
@ -411,6 +411,9 @@ class Zend_Feed_Rss extends Zend_Feed_Abstract
|
||||
|
||||
if (isset($dataentry->guid)) {
|
||||
$guid = $this->_element->createElement('guid', $dataentry->guid);
|
||||
if (!Zend_Uri::check($dataentry->guid)) {
|
||||
$guid->setAttribute('isPermaLink', 'false');
|
||||
}
|
||||
$item->appendChild($guid);
|
||||
}
|
||||
|
||||
@ -425,7 +428,7 @@ class Zend_Feed_Rss extends Zend_Feed_Abstract
|
||||
}
|
||||
|
||||
$pubdate = isset($dataentry->lastUpdate) ? $dataentry->lastUpdate : time();
|
||||
$pubdate = $this->_element->createElement('pubDate', gmdate('r', $pubdate));
|
||||
$pubdate = $this->_element->createElement('pubDate', date(DATE_RSS, $pubdate));
|
||||
$item->appendChild($pubdate);
|
||||
|
||||
if (isset($dataentry->category)) {
|
||||
|
Reference in New Issue
Block a user