From 1da7a8486def3b7d86c970c79451fc3ea0e52e5a Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Mon, 20 Sep 2010 18:30:17 +0000
Subject: [PATCH] Fix call order: recent introduction of file_path in
 FeedsImportBatch reset file path after setting it in FeedsFileBatch.

---
 plugins/FeedsFileFetcher.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/FeedsFileFetcher.inc b/plugins/FeedsFileFetcher.inc
index 530c3d1e..05a07355 100644
--- a/plugins/FeedsFileFetcher.inc
+++ b/plugins/FeedsFileFetcher.inc
@@ -15,15 +15,15 @@ class FeedsFileBatch extends FeedsImportBatch {
    * Constructor.
    */
   public function __construct($file_path, $feed_nid = 0) {
-    $this->file_path = $file_path;
     parent::__construct('', $feed_nid);
+    $this->file_path = $file_path;
   }
 
   /**
    * Implements FeedsImportBatch::getRaw();
    */
   public function getRaw() {
-    return file_get_contents(realpath($this->file_path));
+    return file_get_contents($this->file_path);
   }
 
   /**
-- 
GitLab