mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
BUGFIX Re-added LeftAndMain menu entry in old API which was removed in r65101 in order to support 2.2. Installations
This commit is contained in:
parent
d0aafae7c5
commit
f789043c64
12
_config.php
12
_config.php
@ -14,4 +14,14 @@ Object::add_extension('LeftAndMain', 'ControllerSubsites');
|
||||
|
||||
Object::add_extension('Group', 'GroupSubsites');
|
||||
Object::add_extension('File', 'FileSubsites');
|
||||
?>
|
||||
|
||||
// Backwards compatibility with SilverStripe 2.2
|
||||
if(!class_exists('CMSMenu')) {
|
||||
Director::addRules(100, array(
|
||||
'admin/subsites/$Action/$ID/$OtherID' => 'SubsiteAdmin',
|
||||
));
|
||||
Object::addStaticVars( 'LeftAndMain', array( 'extra_menu_items' => array(
|
||||
'Sub-sites' => array("intranets", "admin/subsites/", 'SubsiteAdmin')
|
||||
)));
|
||||
}
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user