From 67e39d229b3e1b31598b17ed5f827b7e48996657 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 14 Apr 2010 01:34:13 +0000 Subject: [PATCH] BUGFIX: Don't let a user's theme break the CMS. (from r97909) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102748 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index fd8fe597..d62107c0 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -106,6 +106,10 @@ class LeftAndMain extends Controller { SSViewer::setOption('rewriteHashlinks', false); + // 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)) {