Permalink
Browse files

fixed create() to return feed instance

  • Loading branch information...
1 parent 3483afa commit 56b919cd00b8e918558bbf75e9ca7e340b9e9b8c @rjz committed Oct 24, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 models/atomizer_feed.php
View
3 models/atomizer_feed.php
@@ -17,6 +17,7 @@ public function __construct() {
public function create( $info = NULL, $entries = NULL ) {
$feed = new AtomizerFeed( $info, $entries );
+ return $feed;
}
/**
@@ -40,7 +41,7 @@ public function loadURL( $url ) {
public function load( $content ) {
$feed = new AtomizerFeed();
- $feed->load( $url );
+ $feed->load( $content );
return $feed;
}

0 comments on commit 56b919c

Please sign in to comment.