Fixing LeftAndMainSubsites using deprecated Director::redirect()

This commit is contained in:
Sean Harvey 2012-10-12 11:06:23 +13:00
parent 19a904d1d2
commit 6747ba65bb

View File

@ -152,7 +152,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;
}
}