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

Mike Heins <[email protected]> Tue, 14 Jun 2016 20:05:30 +0000
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit a102a6e851dfdca380dd9e33a4cf66ff89f20fb8
Author: Mike Heins <[email protected]>
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;