Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
	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);
	}