fix for translated debug level causing notification popup to fail

This commit is contained in:
Ralf Becker 2013-01-28 08:55:47 +00:00
parent 5bb9cd1ad0
commit 38b8d2fe9e
3 changed files with 14 additions and 2 deletions

View File

@ -53,6 +53,8 @@ function replace_callback($matches)
break;
case 'egw_dc_timeout_socket':
case 'egw_dc_timeout_notify':
case 'egw_debuging':
case 'egw_debuging_level':
break;
default:
$replacement = lang($r=$replacement);

View File

@ -31,6 +31,8 @@ import javax.swing.JOptionPane;
/**
* jegwMain
*
* TODO http://www.java-blog-buch.de/d-plugin-entwicklung-in-java/
*
* @author Stefan Werfling <stefan.werfling@hw-softwareentwicklung.de>
*/
public class jegwMain implements ActionListener
@ -85,8 +87,16 @@ public class jegwMain implements ActionListener
== "1" ? true : false);
egwDebuging.setDebuging(_debuging);
try
{
egwDebuging.setLevel(Level.parse(
jegwConst.getConstTag("egw_debuging_level").trim()));
}
catch(Exception exp)
{
egwDebuging.setLevel(Level.ALL);
}
// END
if( this.egwconfig.getCXMLM().countConf() < 1 )