From 70f489485713256920fd3875ffa6272e7b5e7082 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 16 Feb 2010 03:45:39 +0000 Subject: [PATCH] BUGFIX: Fixed bug in r97395 (from r97508) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@99115 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 7d477c4a..a5ac01b3 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -301,6 +301,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