From bc10beeaa3a9bec1e0a368402e54cb0c43ce4ce3 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 19 Nov 2010 13:20:04 +0000 Subject: [PATCH] Added compatiblity between smarty 2 and 3 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20294 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/php_setup.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/php_setup.inc b/gosa-core/include/php_setup.inc index 0e3e294f2..2b3838ea2 100644 --- a/gosa-core/include/php_setup.inc +++ b/gosa-core/include/php_setup.inc @@ -292,7 +292,13 @@ require("smarty/Smarty.class.php"); $smarty = new Smarty; $smarty->template_dir = $BASE_DIR.'/ihtml/'; $smarty->caching= false; -$smarty->php_handling= Smarty::PHP_REMOVE; + +// To be able to switch between smarty version 2/3 +if(defined('SMARTY_PHP_REMOVE')){ + $smarty->php_handling= SMARTY_PHP_REMOVE; +}else{ + $smarty->php_handling= Smarty::PHP_REMOVE; +} /* Global FPDF define */ define('FPDF_FONTPATH', '/usr/share/php/fpdf/font/'); -- 2.30.2