equal
deleted
inserted
replaced
245 { |
245 { |
246 $this->inchannel = false; |
246 $this->inchannel = false; |
247 } |
247 } |
248 elseif ($this->feed_type == ATOM and $this->incontent ) { |
248 elseif ($this->feed_type == ATOM and $this->incontent ) { |
249 // balance tags properly |
249 // balance tags properly |
250 // note: i don't think this is actually neccessary |
250 // note: This may not actually be necessary |
251 if ( $this->stack[0] == $el ) |
251 if ( $this->stack[0] == $el ) |
252 { |
252 { |
253 $this->append_content("</$el>"); |
253 $this->append_content("</$el>"); |
254 } |
254 } |
255 else { |
255 else { |
577 * |
577 * |
578 * @since 1.5.0 |
578 * @since 1.5.0 |
579 * @package External |
579 * @package External |
580 * @subpackage MagpieRSS |
580 * @subpackage MagpieRSS |
581 * |
581 * |
582 * @param unknown_type $resp |
582 * @param array $resp |
583 * @return unknown |
583 * @return MagpieRSS|bool |
584 */ |
584 */ |
585 function _response_to_rss ($resp) { |
585 function _response_to_rss ($resp) { |
586 $rss = new MagpieRSS( $resp->results ); |
586 $rss = new MagpieRSS( $resp->results ); |
587 |
587 |
588 // if RSS parsed successfully |
588 // if RSS parsed successfully |
722 |
722 |
723 /*=======================================================================*\ |
723 /*=======================================================================*\ |
724 Function: set |
724 Function: set |
725 Purpose: add an item to the cache, keyed on url |
725 Purpose: add an item to the cache, keyed on url |
726 Input: url from wich the rss file was fetched |
726 Input: url from wich the rss file was fetched |
727 Output: true on sucess |
727 Output: true on success |
728 \*=======================================================================*/ |
728 \*=======================================================================*/ |
729 function set ($url, $rss) { |
729 function set ($url, $rss) { |
730 $cache_option = 'rss_' . $this->file_name( $url ); |
730 $cache_option = 'rss_' . $this->file_name( $url ); |
731 |
731 |
732 set_transient($cache_option, $rss, $this->MAX_AGE); |
732 set_transient($cache_option, $rss, $this->MAX_AGE); |