]> git.wh0rd.org Git - tt-rss.git/commitdiff
googlereaderimport: actually pass $link to create_article()
authorFlorian Schlichting <fschlich@zedat.fu-berlin.de>
Sun, 21 Apr 2013 11:20:50 +0000 (13:20 +0200)
committerFlorian Schlichting <fschlich@zedat.fu-berlin.de>
Sun, 21 Apr 2013 11:20:50 +0000 (13:20 +0200)
otherwise the link db field will be empty, and viewing the original
article of an imported starred item results in an empty backend.php page

plugins/googlereaderimport/init.php

index be6b8198154a25f15db0cce6c8eb7bc5d5cc4e43..2e22161b975d8e2d4dda396c9c5413614aaba46d 100644 (file)
@@ -164,7 +164,7 @@ class GoogleReaderImport extends Plugin {
                                        $processed++;
 
                                        $imported += (int) $this->create_article($owner_uid, $guid, $title,
-                                               $updated,  $content, $author, $sql_set_marked, $tags,
+                                               $link, $updated,  $content, $author, $sql_set_marked, $tags,
                                                $orig_feed_data);
 
                                        if ($file && $processed % 25 == 0) {
@@ -196,7 +196,7 @@ class GoogleReaderImport extends Plugin {
        }
 
        // expects ESCAPED data
-       private function create_article($owner_uid, $guid, $title, $updated,  $content, $author, $marked, $tags, $orig_feed_data) {
+       private function create_article($owner_uid, $guid, $title, $link, $updated,  $content, $author, $marked, $tags, $orig_feed_data) {
 
                if (!$guid) $guid = sha1($link);