diff --git a/modules/blockrss/blockrss.php b/modules/blockrss/blockrss.php index 626eb220f..28c83cf78 100644 --- a/modules/blockrss/blockrss.php +++ b/modules/blockrss/blockrss.php @@ -65,9 +65,9 @@ class Blockrss extends Module if (Tools::isSubmit('submitBlockRss')) { $errors = array(); - $urlfeed = strval(Tools::getValue('urlfeed')); - $title = strval(Tools::getValue('title')); - $nbr = (int)(Tools::getValue('nbr')); + $urlfeed = Tools::getValue('urlfeed'); + $title = Tools::getValue('title'); + $nbr = (int)Tools::getValue('nbr'); if ($urlfeed AND !Validate::isUrl($urlfeed)) $errors[] = $this->l('Invalid feed URL'); @@ -82,13 +82,9 @@ class Blockrss extends Module /* Even if the feed was reachable, We need to make sure that the feed is well formated */ else { - try - { + try { $xmlFeed = new XML_Feed_Parser($contents); - - } - catch (XML_Feed_Parser_Exception $e) - { + } catch (XML_Feed_Parser_Exception $e) { $errors[] = $this->l('Invalid feed:').' '.$e->getMessage(); } } @@ -124,13 +120,13 @@ class Blockrss extends Module
'.$this->l('Settings').'
- +

'.$this->l('Create a title for the block (default: \'RSS feed\')').'

- +

'.$this->l('Add the URL of the feed you want to use (sample: http://news.google.com/?output=rss)').'