From 2abd054ff9fe6564e899ae99fb2e4cf1c75ff0b7 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Fri, 10 Feb 2006 11:52:06 +0000 Subject: [PATCH] Add subDispatch, which deals with dispatchers that call other dispatchers, and makes sure breadcrumbs and transaction support works properly. --- lib/dispatcher.inc.php | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/lib/dispatcher.inc.php b/lib/dispatcher.inc.php index 86c8842..7926f41 100644 --- a/lib/dispatcher.inc.php +++ b/lib/dispatcher.inc.php @@ -52,6 +52,12 @@ class KTDispatcher { } } + function subDispatch(&$oOrigDispatcher) { + $this->aBreadcrumbs = $oOrigDispatcher; + $this->bTransactionStarted = $oOrigDispatcher->bTransactionStarted; + return $this->dispatch(); + } + function startTransaction() { DBUtil::startTransaction(); $this->bTransactionStarted = true; -- libgit2 0.21.4