[interchange] * Allow return from Dispatch after Preload routine.

Mike Heins interchange-cvs at icdevgroup.org
Tue Jun 14 20:05:30 UTC 2016


commit a102a6e851dfdca380dd9e33a4cf66ff89f20fb8
Author: Mike Heins <mike at perusion.com>
Date:   Tue Jun 14 09:26:23 2016 -0400

    * Allow return from Dispatch after Preload routine.

 lib/Vend/Dispatch.pm |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/Vend/Dispatch.pm b/lib/Vend/Dispatch.pm
index a23d8c9..c84fcc0 100644
--- a/lib/Vend/Dispatch.pm
+++ b/lib/Vend/Dispatch.pm
@@ -1276,6 +1276,8 @@ sub dispatch {
 
 	run_macro($Vend::Cfg->{Preload});
 
+    return $Vend::PreloadReturn if defined $Vend::PreloadReturn;
+
 	$CGI::user = Vend::Util::check_authorization($CGI::authorization)
 		if defined $CGI::authorization;
 



More information about the interchange-cvs mailing list