From 562cca00af0d69d885b22f1264c80759ae2b0453 Mon Sep 17 00:00:00 2001
From: deminy <deminy@656768.no-reply.drupal.org>
Date: Wed, 24 Jun 2015 18:55:29 -0700
Subject: [PATCH] Issue #2511738 by deminy: Incorrect File Inclusion

---
 feeds.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/feeds.module b/feeds.module
index 79be1de8..ff491712 100644
--- a/feeds.module
+++ b/feeds.module
@@ -1116,7 +1116,7 @@ function feeds_include_library($file, $library) {
     // Try first whether libraries module is present and load the file from
     // there. If this fails, require the library from the local path.
     if ($libraries_path && is_file("$libraries_path/$file")) {
-      require "$path/$file";
+      require "$libraries_path/$file";
       $included[$key] = TRUE;
     }
     elseif (is_file(DRUPAL_ROOT . '/sites/all/libraries/' . $key)) {
-- 
GitLab