diff --git a/cosmogramme/storm_init.php b/cosmogramme/storm_init.php index fdde4df54703a9cec94d7eadc3beb3e6f34d4c52..314258c7b20a57efc2cf95796d7927def4123cdb 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";