From: Davide Franco Date: Thu, 17 Mar 2011 18:13:25 +0000 (+0100) Subject: bacula-web: Removed useless lang.php file X-Git-Tag: Release-5.2.1~360 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bed4d6c620101ad0893a1eb28bfdb7bcf7511b00;p=bacula%2Fbacula bacula-web: Removed useless lang.php file - Removed include in all php script for lang.php - Removed lang.php file from git repo --- diff --git a/gui/bacula-web/backupjob-report.php b/gui/bacula-web/backupjob-report.php index 51b7724042..154dfe1545 100644 --- a/gui/bacula-web/backupjob-report.php +++ b/gui/bacula-web/backupjob-report.php @@ -8,8 +8,6 @@ $smarty = new Smarty(); $dbSql = new Bweb(); - require("lang.php"); - // Smarty configuration $smarty->compile_check = true; $smarty->debugging = false; diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index 57f26244ee..976fb832a7 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -20,8 +20,6 @@ include_once( 'bweb.inc.php' ); $dbSql = new Bweb(); -//require("lang.php"); - $mode = ""; /* diff --git a/gui/bacula-web/jobs.php b/gui/bacula-web/jobs.php index a8b39ec766..5fb6fafbdb 100644 --- a/gui/bacula-web/jobs.php +++ b/gui/bacula-web/jobs.php @@ -8,8 +8,6 @@ $smarty = new Smarty(); $dbSql = new Bweb(); - require("lang.php"); - // Smarty configuration $smarty->compile_check = true; $smarty->debugging = false; diff --git a/gui/bacula-web/lang.php b/gui/bacula-web/lang.php deleted file mode 100644 index a3b2107a93..0000000000 --- a/gui/bacula-web/lang.php +++ /dev/null @@ -1,40 +0,0 @@ -register_block('t','smarty_translate'); - - //$vars = $smarty->get_config_vars(); - $language = $dbSql->get_config_param("lang"); - $domain = "messages"; - putenv("LANG=$language"); - setlocale(LC_ALL, $language); - bindtextdomain($domain,"./locale"); - textdomain($domain); -} -else { - function smarty_translate($params, $text, &$smarty) { - return $text; - } - $smarty->register_block('t','smarty_translate'); -} -?> diff --git a/gui/bacula-web/pools.php b/gui/bacula-web/pools.php index 2583902662..0a2c682c98 100644 --- a/gui/bacula-web/pools.php +++ b/gui/bacula-web/pools.php @@ -8,8 +8,6 @@ $smarty = new Smarty(); $dbSql = new Bweb(); - require("lang.php"); - // Smarty configuration $smarty->compile_check = true; $smarty->debugging = false; diff --git a/gui/bacula-web/report.php b/gui/bacula-web/report.php index 2e1986af54..7312d2cfdf 100644 --- a/gui/bacula-web/report.php +++ b/gui/bacula-web/report.php @@ -31,8 +31,6 @@ $smarty->config_load("bacula.conf"); $dbSql = new Bweb(); -require("lang.php"); - if ( $_GET['default'] == 1) { // Default params, 1 month $dbSql->StartDate = strftime("%Y-%m-%d %H:%M:%S",time()-2678400); $dbSql->EndDate = strftime("%Y-%m-%d %H:%M:%S",time()); diff --git a/gui/bacula-web/test.php b/gui/bacula-web/test.php index ed52f8ffb9..a8407a53ed 100644 --- a/gui/bacula-web/test.php +++ b/gui/bacula-web/test.php @@ -5,8 +5,6 @@ $smarty = new Smarty(); - //require_once ("lang.php"); - // Smarty configuration $smarty->compile_check = true; $smarty->debugging = false;