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:
Ingo Schommer 2008-11-09 14:20:19 +00:00
parent e91de0c1f8
commit c7ff6016b8

View File

@ -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();