BUGFIX: Don't let a user's theme break the CMS.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@97909 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-02-01 06:46:01 +00:00
parent db94bc83e8
commit 3a61db6221

View File

@ -99,6 +99,10 @@ class LeftAndMain extends Controller {
function init() {
parent::init();
// The user's theme shouldn't affect the CMS, if, for example, they have replaced
// TableListField.ss or Form.ss.
SSViewer::set_theme(null);
// set language
$member = Member::currentUser();
if(!empty($member->Locale)) {