Commit 96333c7739ec6941aa06ca7d56e39f4e02e349f5

Authored by Neil Blakey-Milner
1 parent abc39dac

Add simple redirectToMain as a shortcut.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3537 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 4 additions and 0 deletions
lib/dispatcher.inc.php
@@ -49,6 +49,10 @@ class KTDispatcher { @@ -49,6 +49,10 @@ class KTDispatcher {
49 return $this->errorRedirectTo('main', $error_message, $sQuery); 49 return $this->errorRedirectTo('main', $error_message, $sQuery);
50 } 50 }
51 51
  52 + function redirectToMain($sQuery = "") {
  53 + return $this->redirectTo('main', $sQuery);
  54 + }
  55 +
52 function handleOutput($sOutput) { 56 function handleOutput($sOutput) {
53 print $sOutput; 57 print $sOutput;
54 } 58 }