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

SF.net SVN: ledger-smb:[4083] branches/1.3/LedgerSMB/Template/LaTeX.pm



Revision: 4083
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4083&view=rev
Author:   tshvr
Date:     2011-11-25 20:26:43 +0000 (Fri, 25 Nov 2011)
Log Message:
-----------
set default templates/demo as last resort when experimenting with own templates

Modified Paths:
--------------
    branches/1.3/LedgerSMB/Template/LaTeX.pm

Modified: branches/1.3/LedgerSMB/Template/LaTeX.pm
===================================================================
--- branches/1.3/LedgerSMB/Template/LaTeX.pm	2011-11-25 16:49:57 UTC (rev 4082)
+++ branches/1.3/LedgerSMB/Template/LaTeX.pm	2011-11-25 20:26:43 UTC (rev 4083)
@@ -58,6 +58,8 @@
 use Template::Latex;
 use LedgerSMB::Template::TTI18N;
 
+my $logger = Log::Log4perl->get_logger('LedgerSMB::Template::LaTeX');
+
 sub get_template {
 	my $name = shift;
 	return "${name}.tex";
@@ -132,7 +134,7 @@
 	}
 	$template = Template::Latex->new({
 		LATEX_FORMAT => $format,
-		INCLUDE_PATH => [$parent->{include_path_lang}, $parent->{include_path}, 'UI/lib'],
+		INCLUDE_PATH => [$parent->{include_path_lang}, $parent->{include_path},'templates/demo','UI/lib'],
 		START_TAG => quotemeta('<?lsmb'),
 		END_TAG => quotemeta('?>'),
 		DELIMITER => ';',

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