mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 52719 via svnmerge from
http://svn.silverstripe.com/open/modules/sapphire/branches/2.2.2 ........ r52719 | sminnee | 2008-04-15 11:56:10 +1200 (Tue, 15 Apr 2008) | 1 line Fixed ContentController where ->dataRecord is empty ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@53520 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
45804905ed
commit
8a5b360abd
@ -92,7 +92,9 @@ class ContentController extends Controller {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->dataRecord->extend('contentcontrollerInit', $this);
|
||||
if($this->dataRecord) $this->dataRecord->extend('contentcontrollerInit', $this);
|
||||
else singleton('SiteTree')->extend('contentcontrollerInit', $this);
|
||||
|
||||
if(Director::redirected_to()) return;
|
||||
|
||||
Director::set_site_mode('site');
|
||||
|
Loading…
Reference in New Issue
Block a user