Guest User

Untitled

a guest
Jul 6th, 2017
47
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // config.php
  2. $GLOBALS['TL_HOOKS']['parseTemplate'][] = array('MyClass', 'redirectBBKDeeplink');
  3.  
  4. // MyClass.php  
  5.  public function redirectBBKDeeplink($objTemplate)
  6.     {
  7.         if ($objTemplate->getName() == 'be_confirm' && $objTemplate->info['table'] == 'tl_bbk_booking' && !$objTemplate->info['rt'])
  8.         {
  9.             $this->redirect($objTemplate->href);
  10.         }
  11.     }
RAW Paste Data