BUGFIX default to correct subsite

This commit is contained in:
Tom Rix 2010-04-06 03:15:44 +00:00
parent 8a7e532859
commit 8ee35be254

View File

@ -85,10 +85,7 @@ class LeftAndMainSubsites extends Extension {
$list = $this->Subsites();
if(Controller::curr()->hasMethod('getRequest')) $requestSubsiteID = Controller::curr()->getRequest()->getVar('SubsiteID');
else $requestSubsiteID = isset($_REQUEST['SubsiteID']) ? $_REQUEST['SubsiteID'] : null;
$currentSubsiteID = ($requestSubsiteID) ? $requestSubsiteID : Session::get('SubsiteID');
$currentSubsiteID = Subsite::currentSubsiteID();
if($list->Count() > 1) {
$output = '<select id="SubsitesSelect">';