Code

- Tool will do everything automatically
[gosa.git] / gosa-core / debian / patches / 01_fix_smarty_location.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 01_fix_smarty_location.dpatch by  <cajus@debian.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Adapt location for debian packaged smarty
7 @DPATCH@
8 diff -urNad gosa-core~/include/php_setup.inc gosa-core/include/php_setup.inc
9 --- gosa-core~/include/php_setup.inc    2008-12-12 13:31:08.000000000 +0100
10 +++ gosa-core/include/php_setup.inc     2009-02-09 17:25:51.000000000 +0100
11 @@ -277,7 +277,11 @@
12  ini_set("include_path",".:$BASE_DIR/include:$BASE_DIR/include/utils/excel");
13  
14  /* Do smarty setup */
15 -require("smarty/Smarty.class.php");
16 +if (file_exists("/usr/share/php/smarty/Smarty.class.php")){
17 +       require("/usr/share/php/smarty/Smarty.class.php");
18 +} else {
19 +       require("/usr/share/php/smarty/libs/Smarty.class.php");
20 +}
21  $smarty = new Smarty;
22  $smarty->template_dir = $BASE_DIR.'/ihtml/';
23  $smarty->caching= false;