Permalink
Browse files

Undefined property: XML_Feed_Parser_Factory::

  • Loading branch information...
1 parent 913bcf7 commit b0640b5f25c8682f00f68896cd03f94989d1dbaa @CloCkWeRX CloCkWeRX committed Dec 9, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 XML/Feed/Parser/Factory.php
@@ -16,13 +16,13 @@ class XML_Feed_Parser_Factory {
*/
function build($feed, $strict = false, $suppressWarnings = false, $tidy = false)
{
- if (! $this->model->loadXML($feed, $options)) {
+ if (! $feed->model->loadXML($feed, $options)) {
if (extension_loaded('tidy') && $tidy) {
$tidy = new tidy;
$tidy->parseString($feed,
array('input-xml' => true, 'output-xml' => true));
$tidy->cleanRepair();
- if (! $this->model->loadXML((string) $tidy)) {
+ if (! $feed->model->loadXML((string) $tidy)) {
throw new XML_Feed_Parser_Exception('Invalid input: this is not ' .
'valid XML');
}
@@ -33,13 +33,13 @@ function build($feed, $strict = false, $suppressWarnings = false, $tidy = false)
/* detect feed type */
- $doc_element = $this->model->documentElement;
+ $doc_element = $feed->model->documentElement;
$class = $this->determineClass($doc_element, $suppressWarnings);
/* Instantiate feed object */
- $feed = new $class($this->model, $strict);
+ $feed = new $class($feed->model, $strict);
$feed->setSanitizer(new XML_Parser_Unsafe_Sanitizer());
return $feed;

0 comments on commit b0640b5

Please sign in to comment.