mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 50188 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.2.1-dnc ........ r50188 | ischommer | 2008-02-26 14:07:33 +1300 (Tue, 26 Feb 2008) | 1 line setting Director::set_site_mode() (similiar to ContentController) - required for Translatable::choose_site_lang() to work properly ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@50185 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e22b87774d
commit
490fc2b2f1
@ -27,6 +27,8 @@ class ModelAsController extends Controller implements NestedController {
|
||||
|
||||
public function init() {
|
||||
singleton('SiteTree')->extend('modelascontrollerInit', $this);
|
||||
|
||||
Director::set_site_mode('site');
|
||||
}
|
||||
|
||||
public function getNestedController() {
|
||||
|
Loading…
Reference in New Issue
Block a user