mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
MINOR if you remove the FileSubsites decorator, you wont see the dropdown in AssetAdmin, either. (from r89585)
This commit is contained in:
parent
f8ca454de7
commit
a617402f69
@ -88,6 +88,14 @@ class LeftAndMainSubsites extends Extension {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function SubsiteList() {
|
public function SubsiteList() {
|
||||||
|
if ($this->owner->class == 'AssetAdmin') {
|
||||||
|
// See if the right decorator is there....
|
||||||
|
$file = new File();
|
||||||
|
if (!$file->hasExtension('FileSubsites')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$list = $this->Subsites();
|
$list = $this->Subsites();
|
||||||
|
|
||||||
if(Controller::curr()->hasMethod('getRequest')) $requestSubsiteID = Controller::curr()->getRequest()->getVar('SubsiteID');
|
if(Controller::curr()->hasMethod('getRequest')) $requestSubsiteID = Controller::curr()->getRequest()->getVar('SubsiteID');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user