From f83b5db8fe7266b34356d702bb3ec8f0a3cc73a4 Mon Sep 17 00:00:00 2001
From: denix <denix@392790.no-reply.drupal.org>
Date: Sun, 27 Aug 2017 15:10:52 +0200
Subject: [PATCH] Issue #2904501 by denix: Error Cannot redeclare
 drupal_path_initialize()

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

diff --git a/ldap_sso.module b/ldap_sso.module
index a897001..220953f 100644
--- a/ldap_sso.module
+++ b/ldap_sso.module
@@ -57,7 +57,7 @@ function ldap_sso_boot() {
           $login_attempted = FALSE;
         }
         require_once(DRUPAL_ROOT . '/includes/common.inc');
-        require_once(DRUPAL_ROOT . '/includes/path.inc');
+        require_once DRUPAL_ROOT . '/' . variable_get('path_inc', 'includes/path.inc');
         $ldap_authentication_conf = variable_get('ldap_authentication_conf', array());
         if (isset($ldap_authentication_conf['seamlessLogin']) && $ldap_authentication_conf['seamlessLogin'] == 1 && ($login_attempted != 'true')) {
           setcookie("seamless_login_attempted", 'true', time() + (int)$ldap_authentication_conf['cookieExpire'], base_path(), "");
-- 
GitLab