mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Improved behaviour of contentcontrollerInit when extensions are applied to subclasses of SiteTree
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.2@52343 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
cbd65bd9ef
commit
f634ac7e58
@ -93,7 +93,9 @@ class ContentController extends Controller {
|
||||
return;
|
||||
}
|
||||
|
||||
singleton('SiteTree')->extend('contentcontrollerInit', $this);
|
||||
$this->dataRecord->extend('contentcontrollerInit', $this);
|
||||
if(Director::redirected_to()) return;
|
||||
|
||||
Director::set_site_mode('site');
|
||||
|
||||
// Check page permissions
|
||||
|
Loading…
x
Reference in New Issue
Block a user