]> git.sur5r.net Git - bacula/bacula/commitdiff
Minor tweaks
authorKern Sibbald <kern@sibbald.com>
Sun, 19 Jun 2005 09:57:55 +0000 (09:57 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 19 Jun 2005 09:57:55 +0000 (09:57 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2145 91ce42f0-d328-0410-95d8-f526ca767f89

gui/.cvsignore
gui/bacula-web/lang.php
gui/bacula-web/report.php

index d89921897ae6b00d4a280883194d448ed042c839..d521238cecf4433d9670f886a86927e0b2ba5336 100644 (file)
@@ -1 +1,5 @@
+diff
+config.status
+config.out
+config.log
 autom4te.cache
index 5a079d61fd0d6da0778b055438868f9ce4716419..0d86ac6136f7d2f3f1abf5eee5f4d24653600104 100644 (file)
@@ -1,7 +1,7 @@
 <?
 /* 
 +-------------------------------------------------------------------------+
-| Copyright (C) 2004 Juan Luis Francés Jiménez                            |
+| Copyright (C) 2004-2005 Juan Luis Frances Jiminez                       |
 |                                                                         |
 | This program is free software; you can redistribute it and/or           |
 | modify it under the terms of the GNU General Public License             |
 // and we check if it is present at the system
 
 if ( function_exists("gettext") ) {
-       require($smarty_gettext_path."smarty_gettext.php");     
-       $smarty->register_block('t','smarty_translate');
-       
-       $vars = $smarty->get_config_vars();
-       $language = $vars[lang];
-       $domain = "messages";   
-       putenv("LANG=$language"); 
-       setlocale(LC_ALL, $language);
-       bindtextdomain($domain,"./locale");
-       textdomain($domain);
+        require($smarty_gettext_path."smarty_gettext.php");     
+        $smarty->register_block('t','smarty_translate');
+        
+        $vars = $smarty->get_config_vars();
+        $language = $vars['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');
+        function smarty_translate($params, $text, &$smarty) {
+                return $text;
+        }
+        $smarty->register_block('t','smarty_translate');
 }
-?>
\ No newline at end of file
+?>
index 3ba21291e2c78e68dbecf33b0293d7ea2062c008..ba6028784ce2a4afe9ad7f5822f97d58526eb3ac 100644 (file)
@@ -56,9 +56,9 @@ else if ($dbSql->driver == "pgsql")
                 or die("Error query row 56");
 
 while ( $tmp = $res_jobs->fetchRow(DB_FETCHMODE_ASSOC) ) {
-        $tdate = explode (":",$tmp[elapsed]);                                                                           // Temporal "workaround" ;) Fix later
+        $tdate = explode (":",$tmp['elapsed']);                                                                           // Temporal "workaround" ;) Fix later
         if ( $tdate[0] > 300000 )
-                $tmp[elapsed] = "00:00:00";
+                $tmp['elapsed'] = "00:00:00";
         array_push($a_jobs,$tmp);
 }
 $smarty->assign('jobs',$a_jobs);