From dccf5cd337795c3f727acbb3e8bc5921c0288685 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 26 Aug 2015 20:02:33 +0200 Subject: [PATCH] Add variable NOALYSS_TEMPLATE --- include/constant.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/constant.php b/include/constant.php index aa3388ed7..b8b6d318e 100644 --- a/include/constant.php +++ b/include/constant.php @@ -32,13 +32,15 @@ $inc_path=get_include_path(); $dirname=dirname(__FILE__); /* Global variable of the include dir */ -global $g_include_dir,$g_ext_dir; +global $g_include_dir,$g_ext_dir,$g_template_dir; $g_include_dir=$dirname; $g_ext_dir = $dirname."/ext"; +$g_template_dir = $dirname."/template"; if ( !defined("NOALYSS_HOME")) define ("NOALYSS_HOME",dirname($dirname)."/html"); if ( !defined("NOALYSS_PLUGIN")) define ("NOALYSS_PLUGIN",$g_ext_dir); if ( !defined("NOALYSS_INCLUDE")) define ("NOALYSS_INCLUDE",$g_include_dir); +if ( !defined("NOALYSS_TEMPLATE")) define ("NOALYSS_TEMPLATE",$g_template_dir); if (file_exists(NOALYSS_INCLUDE.'/config.inc.php')) require_once NOALYSS_INCLUDE.'/config.inc.php'; require_once NOALYSS_INCLUDE.'/constant.security.php';