/[drupal]/contributions/modules/fooaggregator/parsers/simplexml/fa_simplexml.module
ViewVC logotype

Diff of /contributions/modules/fooaggregator/parsers/simplexml/fa_simplexml.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.13, Fri Oct 17 09:33:34 2008 UTC revision 1.1.2.14, Tue Oct 21 22:26:06 2008 UTC
# Line 1  Line 1 
1  <?php // -*-php-*-  <?php // -*-php-*-
2  /* $Id: fa_simplexml.module,v 1.1.2.12 2008/09/25 00:49:23 alaa Exp $ */  /* $Id: fa_simplexml.module,v 1.1.2.13 2008/10/17 09:33:34 alaa Exp $ */
3    
4  /**  /**
5   * Implementation of hook_fooaggregatorapi()   * Implementation of hook_fooaggregatorapi()
# Line 54  function _fa_simplexml_refresh(&$feed, $ Line 54  function _fa_simplexml_refresh(&$feed, $
54          @ $parsed_xml = simplexml_load_string($xml, NULL, LIBXML_NOERROR | LIBXML_NOWARNING);          @ $parsed_xml = simplexml_load_string($xml, NULL, LIBXML_NOERROR | LIBXML_NOWARNING);
55        }        }
56      }      }
57      $error = libxml_get_last_error();      if ($parsed_xml === FALSE || $parsed_xml == NULL) {
58      $message = t('Failed to parse %title, %error', array('%title' => $feed->title, '%error' => $error->message));        $error = libxml_get_last_error();
59      _fooaggregator_log_error($message);        $message = t('Failed to parse %title, %error', array('%title' => $feed->title, '%error' => $error->message));
60      $xml = null;        _fooaggregator_log_error($message);
61      return false;        $xml = null;
62          return false;
63        }
64    }    }
65    
66    _fa_simplexml_update_feed_info($feed, $parsed_xml);    _fa_simplexml_update_feed_info($feed, $parsed_xml);

Legend:
Removed from v.1.1.2.13  
changed lines
  Added in v.1.1.2.14

  ViewVC Help
Powered by ViewVC 1.1.2