mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
BUGFIX default to correct subsite
This commit is contained in:
parent
8a7e532859
commit
8ee35be254
@ -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">';
|
||||
|
Loading…
Reference in New Issue
Block a user