/** * Protection against infinite loops when an RSS widget pointing to this page is added to this page */ function defaultAction($action) { if (stristr($_SERVER['HTTP_USER_AGENT'], 'SimplePie')) { return $this->rss(); } return parent::defaultAction($action); }
function defaultAction($action) { // Protection against infinite loops when an RSS widget pointing to this page is added to this page if(stristr($_SERVER['HTTP_USER_AGENT'], 'SimplePie')) { return $this->rss(); } return parent::defaultAction($action); }