From 4f401de91bd5db0438e3b28e264e066bec444f95 Mon Sep 17 00:00:00 2001
From: pbarroca <pbarroca@afi-sa.fr>
Date: Mon, 3 Feb 2014 15:24:27 +0100
Subject: [PATCH] Fix storm include pass to conform to submodules configuration

---
 cosmogramme/storm_init.php | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/cosmogramme/storm_init.php b/cosmogramme/storm_init.php
index fdde4df5470..314258c7b20 100644
--- a/cosmogramme/storm_init.php
+++ b/cosmogramme/storm_init.php
@@ -20,15 +20,18 @@
    * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA 
    */
 
-include_once (realpath(dirname(__FILE__)).'/local.php');
+$basePath = realpath(dirname(__FILE__));
+include_once ($basePath . '/local.php');
 
 if (!defined('OPAC_PATH'))
-  define('OPAC_PATH',realpath(dirname(__FILE__).'/../'));
+  define('OPAC_PATH', $basePath . '/../');
 
 if (!defined('LANG_DIR'))
   define('LANG_DIR', OPAC_PATH.'/library/translation/');
 
-set_include_path(get_include_path().PATH_SEPARATOR.OPAC_PATH.'/library');
+set_include_path(get_include_path() 
+								 . PATH_SEPARATOR . OPAC_PATH . '/library'
+								 . PATH_SEPARATOR . OPAC_PATH . '/library/storm/src');
 
 // Includes de base
 include_once "fonctions/array.php";
-- 
GitLab