Code

Updated patches
[gosa.git] / gosa-core / debian / patches / 01_fix_smarty_location.patch
1 Author: <cajus@debian.org>
2 Description: Adapt location for debian packaged smarty
3 --- a/include/php_setup.inc
4 +++ b/include/php_setup.inc
5 @@ -295,7 +295,11 @@
6  ini_set("include_path",".:$BASE_DIR/include:$BASE_DIR/include/utils/excel:/usr/share/php");
7  
8  /* Do smarty setup */
9 -require("smarty/Smarty.class.php");
10 +if (file_exists("/usr/share/php/smarty3/Smarty.class.php")){
11 +       require("/usr/share/php/smarty3/Smarty.class.php");
12 +} else {
13 +       require("/usr/share/php/smarty3/libs/Smarty.class.php");
14 +}
15  $smarty = new Smarty;
16  $smarty->template_dir = $BASE_DIR.'/ihtml/';
17  $smarty->caching= false;