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

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



Revision: 3579
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3579&view=rev
Author:   ehuelsmann
Date:     2011-07-27 08:03:07 +0000 (Wed, 27 Jul 2011)

Log Message:
-----------
Reverse breakage for which I have no explanation - yet.

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

Modified: trunk/LedgerSMB/Template.pm
===================================================================
--- trunk/LedgerSMB/Template.pm	2011-07-27 07:56:22 UTC (rev 3578)
+++ trunk/LedgerSMB/Template.pm	2011-07-27 08:03:07 UTC (rev 3579)
@@ -247,12 +247,10 @@
 #	if ($self->{myconfig}){
 #	        $self->_preprocess($vars);
 #	}
-	try { require $format; }
-	catch CancelFurtherProcessing with {
-	    my $ex = shift;
-	    throw $ex;
+	eval "require $format";
+	if ($@) {
+		throw Error::Simple $@;
 	}
-	otherwise { throw Error::Simple $@ };
 
 	my $cleanvars;
 	if ($self->{no_escape}) {


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