mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Setting Director::set_site_mode('site') in RootURLController in newly added init() method, which fixes Translatable::choose_site_lang(). The original bug was a wrong selected language in the <meta> tags through SiteTree->MetaTags()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@65462 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e91de0c1f8
commit
c7ff6016b8
@ -8,9 +8,16 @@
|
||||
class RootURLController extends Controller {
|
||||
protected static $is_at_root = false;
|
||||
|
||||
public function init() {
|
||||
Director::set_site_mode('site');
|
||||
parent::init();
|
||||
}
|
||||
|
||||
public function handleRequest($request) {
|
||||
self::$is_at_root = true;
|
||||
$this->pushCurrent();
|
||||
|
||||
$this->init();
|
||||
|
||||
$controller = new ModelAsController();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user