Added support for passing in a .rss extension to force the rendering engine RSS.

This commit is contained in:
Josh Sherman 2010-11-26 23:16:30 -05:00
parent e730d2181f
commit c32ee1a12e

View file

@ -263,8 +263,7 @@ class Controller extends Object
$return_type = strtoupper($return_type);
// Validates the return type against the module
// @todo Update RSS class and add RSS back to the list of possible return types
if (in_array($return_type, array('JSON', 'XML')) && in_array($return_type, $engines))
if (in_array($return_type, array('JSON', 'RSS', 'XML')) && in_array($return_type, $engines))
{
$engine = $return_type;
}