[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5899] trunk/LedgerSMB.pm



Revision: 5899
          http://sourceforge.net/p/ledger-smb/code/5899
Author:   tshvr
Date:     2013-07-03 16:10:13 +0000 (Wed, 03 Jul 2013)
Log Message:
-----------
locale on early errors

Modified Paths:
--------------
    trunk/LedgerSMB.pm

Modified: trunk/LedgerSMB.pm
===================================================================
--- trunk/LedgerSMB.pm	2013-07-03 16:09:07 UTC (rev 5898)
+++ trunk/LedgerSMB.pm	2013-07-03 16:10:13 UTC (rev 5899)
@@ -965,6 +965,7 @@
    my $self = shift @_;
    my $state_error = {};
    my $locale = $LedgerSMB::App_State::Locale;
+   if(! $locale){$locale=$self->{_locale};}#tshvr4
    my $dbh = $LedgerSMB::App_State::DBH;
    $state_error = {
             '42883' => $locale->text('Internal Database Error'),

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.