mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merged revisions 52350 via svnmerge from
http://svn.silverstripe.com/open/modules/sapphire/branches/2.2.2 ........ r52350 | sminnee | 2008-04-09 12:35:52 +1200 (Wed, 09 Apr 2008) | 1 line Improved behaviour of contentcontrollerInit when extensions are applied to subclasses of SiteTree ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@53511 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a6af17943c
commit
d9998f2684
@ -92,7 +92,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