From 183bb846a70103c531edba249bf07b409064ed4a Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Mon, 21 Mar 2011 18:56:45 +0100 Subject: [PATCH] bacula-web: Improved config.inc.php - Using constant instead of variable for include paths - Automatic detection of bacula-web installation path - Adapted include in index.php and bweb.inc.php --- gui/bacula-web/bweb.inc.php | 2 +- gui/bacula-web/config.inc.php | 23 ++++++++++------------- gui/bacula-web/index.php | 2 +- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/gui/bacula-web/bweb.inc.php b/gui/bacula-web/bweb.inc.php index 4490134421..d57090bedb 100644 --- a/gui/bacula-web/bweb.inc.php +++ b/gui/bacula-web/bweb.inc.php @@ -85,7 +85,7 @@ class Bweb extends DB { global $smarty_gettext_path; if ( function_exists("gettext") ) { - require_once( $smarty_gettext_path."smarty_gettext.php" ); + require_once( BW_SMARTY_GETTEXT . "smarty_gettext.php" ); $this->tpl->register_block('t','smarty_translate'); $language = $this->get_config_param("lang"); diff --git a/gui/bacula-web/config.inc.php b/gui/bacula-web/config.inc.php index 6a28a47f73..e67d08ac6a 100644 --- a/gui/bacula-web/config.inc.php +++ b/gui/bacula-web/config.inc.php @@ -1,21 +1,18 @@