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

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



Revision: 5423
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5423&view=rev
Author:   einhverfr
Date:     2012-12-27 06:42:16 +0000 (Thu, 27 Dec 2012)
Log Message:
-----------
Minor fix for format detection

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

Modified: trunk/LedgerSMB/Template.pm
===================================================================
--- trunk/LedgerSMB/Template.pm	2012-12-27 05:54:37 UTC (rev 5422)
+++ trunk/LedgerSMB/Template.pm	2012-12-27 06:42:16 UTC (rev 5423)
@@ -288,10 +288,9 @@
         $vars->{USER} = $LedgerSMB::App_State::User;
         $vars->{CSSDIR} = $LedgerSMB::Sysconfig::cssdir;
         $vars->{DBNAME} = $LedgerSMB::App_State::DBName;
-
         my @stdformats = ();
         for (qw(HTML PDF PS)){
-           if (scalar(grep {/^$_$/} @{$vars->{FORMATS}})){
+           if (scalar(grep {/^$_$/} $self->available_formats)){
                push @stdformats, $_;
            }
         }

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