diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index f5c1a395..722bd3a6 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -106,10 +106,6 @@ 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)) { @@ -307,6 +303,10 @@ class LeftAndMain extends Controller { $dummy = null; $this->extend('init', $dummy); + + // The user's theme shouldn't affect the CMS, if, for example, they have replaced + // TableListField.ss or Form.ss. + SSViewer::set_theme(null); } //------------------------------------------------------------------------------------------//