From 070eaf54aea9d179a1f22afc26d5a57207d09301 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 11 Oct 2012 15:16:38 +1300 Subject: [PATCH] Fixing deprecated call to Director::redirect() --- code/extensions/LeftAndMainSubsites.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/extensions/LeftAndMainSubsites.php b/code/extensions/LeftAndMainSubsites.php index b907979..9b46855 100644 --- a/code/extensions/LeftAndMainSubsites.php +++ b/code/extensions/LeftAndMainSubsites.php @@ -149,7 +149,7 @@ class LeftAndMainSubsites extends Extension { Subsite::changeSubsite($siteIDs[0]); $cClass = $candidate->controller; $cObj = new $cClass(); - Director::redirect($cObj->Link()); + $this->owner->redirect($cObj->Link()); return null; } }