Better argument passing for _syndication_parser_choose

mustafau - June 30, 2008 - 08:30
Project:New Aggregator for Drupal core
Version:7.x-0.1-alpha3
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

Consider passing arguments to the _syndication_parser_choose function as an array.

Instead of:

<?php
$item
->title = _syndication_parser_choose("{$news->title}", "{$dc->title}");
?>

consider following:

<?php
$item
->title = _syndication_parser_choose(array("{$news->title}", "{$dc->title}"));
?>

#1

mustafau - September 25, 2008 - 00:31
Version:<none>» 7.x-0.1-alpha3
Status:active» won't fix
 
 

Drupal is a registered trademark of Dries Buytaert.