cvs: pear /XML_Feed_Parser/Parser RSS2Element.php Type.php

From: Date: Mon, 07 Nov 2005 02:25:02 +0000
Subject: cvs: pear /XML_Feed_Parser/Parser RSS2Element.php Type.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-36125@lists.php.net to get a copy of this message
jystewart Sun Nov 6 21:25:02 2005 EDT Modified files: /pear/XML_Feed_Parser/Parser RSS2Element.php Type.php Log: Added guidislink option for RSS2Element to increase compatibilty with Universal Feed Parser Changed method of merging arguments in __call in XML_Feed_Parser_Type to prevent call name being merged as argument http://cvs.php.net/diff.php/pear/XML_Feed_Parser/Parser/RSS2Element.php?r1=1.6&r2=1.7&ty=u Index: pear/XML_Feed_Parser/Parser/RSS2Element.php diff -u pear/XML_Feed_Parser/Parser/RSS2Element.php:1.6 pear/XML_Feed_Parser/Parser/RSS2Element.php:1.7 --- pear/XML_Feed_Parser/Parser/RSS2Element.php:1.6 Sun Nov 6 20:52:35 2005 +++ pear/XML_Feed_Parser/Parser/RSS2Element.php Sun Nov 6 21:25:01 2005 @@ -17,7 +17,7 @@ * @author James Stewart <james@jystewart.net> * @copyright 2005 James Stewart <james@jystewart.net> * @license http://www.gnu.org/copyleft/lesser.html GNU LGPL 2.1 - * @version CVS: $Id: RSS2Element.php,v 1.6 2005/11/07 01:52:35 jystewart Exp $ + * @version CVS: $Id: RSS2Element.php,v 1.7 2005/11/07 02:25:01 jystewart Exp $ * @link http://pear.php.net/package/XML_Feed_Parser/ */ @@ -63,7 +63,8 @@ 'id' => array('guid'), 'content' => array('description'), 'updated' => array('lastBuildDate'), - 'published' => array('pubdate')); + 'published' => array('pubdate'), + 'guidislink' => array('guid', 'ispermalink')); /** * Store useful information for later. http://cvs.php.net/diff.php/pear/XML_Feed_Parser/Parser/Type.php?r1=1.6&r2=1.7&ty=u Index: pear/XML_Feed_Parser/Parser/Type.php diff -u pear/XML_Feed_Parser/Parser/Type.php:1.6 pear/XML_Feed_Parser/Parser/Type.php:1.7 --- pear/XML_Feed_Parser/Parser/Type.php:1.6 Sun Nov 6 20:52:35 2005 +++ pear/XML_Feed_Parser/Parser/Type.php Sun Nov 6 21:25:01 2005 @@ -18,7 +18,7 @@ * @author James Stewart <james@jystewart.net> * @copyright 2005 James Stewart <james@jystewart.net> * @license http://www.gnu.org/copyleft/lesser.html GNU LGPL 2.1 - * @version CVS: $Id: Type.php,v 1.6 2005/11/07 01:52:35 jystewart Exp $ + * @version CVS: $Id: Type.php,v 1.7 2005/11/07 02:25:01 jystewart Exp $ * @link http://pear.php.net/package/XML_Feed_Parser/ */ @@ -66,8 +66,11 @@ } if (isset($this->compatMap[$call])) { - $arguments = array_merge($arguments, $this->compatMap[$call]); - $call = $this->compatMap[$call][0]; + $tempcall = array_pop($this->compatMap[$call]); + if (! empty($this->compatMap)) { + $arguments = array_merge($arguments, $this->compatMap[$call]); + } + $call = $tempcall; } /* To be helpful, we allow a case-insensitive search for this method */

« previous php.pear.cvs (#36125) next »