From: Davide Franco Date: Mon, 21 Mar 2011 17:56:45 +0000 (+0100) Subject: bacula-web: Improved config.inc.php X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=183bb846a70103c531edba249bf07b409064ed4a;p=bacula%2Fbacula 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 --- 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 @@