[dev] Update to jonah/lib/News.php
Marko Djukic
marko at oblo.com
Sat May 3 21:39:36 PDT 2003
Quoting Joe Wilson <joe.wilson at mindcandy.org>:
> Fixes errors in fetchExternalStories and _fetchExternalStories.
>
> Index: News.php
> ===================================================================
> RCS file: /usr/local/cvs/horde/jonah/lib/News.php,v
> retrieving revision 1.7
> diff -r1.7 News.php
> 226,227c226
> < $stories = $cache->getData($url,
> "Horde_Serialize::serialize(Jonah_News::_fetchExternalStories('$url',
> '$timestamp'), SERIALIZE_UTF7_BASIC);", $interval);
> <
> ---
> > $stories = $cache->getData($url,
> "Horde_Serialize::serialize(Jonah_News::_fetchExternalStories(\"$url\",
> \"$timestamp\"), SERIALIZE_UTF7_BASIC);", $interval);
> 258,259c257
why the change from ' to \"?
> < $rdf = &new XML_RSS($fp);
> < $rdf->setInputFile($url);
> ---
> > $rdf = &new XML_RSS($url);
> 269c267
> < $items[$key]['story_desc'] = $story['description'];
> ---
> > if (array_key_exists("description", $story))
> {$items[$key]['story_desc'] = $story['description'];}
>
not committing the rest because in the meantime i've reverted the code back to
the old lib and PEAR is not used any longer.
marko
More information about the dev
mailing list