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

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



Revision: 6392
          http://sourceforge.net/p/ledger-smb/code/6392
Author:   einhverfr
Date:     2014-01-05 14:15:23 +0000 (Sun, 05 Jan 2014)
Log Message:
-----------
Printing now working for templates from the db.:

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

Modified: trunk/LedgerSMB/Template/DB.pm
===================================================================
--- trunk/LedgerSMB/Template/DB.pm	2014-01-05 14:04:29 UTC (rev 6391)
+++ trunk/LedgerSMB/Template/DB.pm	2014-01-05 14:15:23 UTC (rev 6392)
@@ -65,7 +65,8 @@
          procname => 'template__get',
          args => [$template_name, $language_code, $format]
     );
-    my $text = $temp->{template};
+    $temp = __PACKAGE__->new($temp);
+    my $text = $temp->template;
     return \$text;
 }
 

Modified: trunk/LedgerSMB/Template/HTML.pm
===================================================================
--- trunk/LedgerSMB/Template/HTML.pm	2014-01-05 14:04:29 UTC (rev 6391)
+++ trunk/LedgerSMB/Template/HTML.pm	2014-01-05 14:15:23 UTC (rev 6392)
@@ -131,7 +131,7 @@
 	}
         if ($parent->{include_path} eq 'DB'){
                 $source = LedgerSMB::Template::DB->get_template(
-                       $parent->{template}, $parent->{include_path_lang}, 'html'
+                       $parent->{template}, undef, 'html'
                 );
 	} elsif (ref $parent->{template} eq 'SCALAR') {
 		$source = $parent->{template};

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


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits