From 006ad3062fad18297e2472352ce276e1ff0b99ba Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 14 Apr 2010 01:36:57 +0000 Subject: [PATCH] BUGFIX Fixed incorrect logic in CMSMain::generateTreeStylingJS() stopping different tree icons from working (from r98018) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@102750 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index d85f2285..87529e70 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -182,9 +182,9 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr $fileImage = ($option == "folder") ? $icon . '-openfolder.gif' : $icon . '-file.gif'; $openFolderImage = $icon . '-openfolder.gif'; - if(!Director::fileExists($openFolderImage) || $option = "file") $openFolderImage = $fileImage; + if(!Director::fileExists($openFolderImage) || $option == "file") $openFolderImage = $fileImage; $closedFolderImage = $icon . '-closedfolder.gif'; - if(!Director::fileExists($closedFolderImage) || $option = "file") $closedFolderImage = $fileImage; + if(!Director::fileExists($closedFolderImage) || $option == "file") $closedFolderImage = $fileImage; $js .= <<