From 21434434724a2b6162335df3a868b4153d0db89c Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 3 Aug 2010 03:15:46 +0000 Subject: [PATCH] BUGFIX: Fixed bug in r97395 (from r97508) (from r99115) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@108819 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/LeftAndMain.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 74ca2d26..65b7e1f5 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -313,6 +313,17 @@ class LeftAndMain extends Controller { SSViewer::set_theme(null); } + + /** + * If this is set to true, the "switchView" context in the + * template is shown, with links to the staging and publish site. + * + * @return boolean + */ + function ShowSwitchView() { + return false; + } + //------------------------------------------------------------------------------------------// // Main controllers