mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
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
This commit is contained in:
parent
fe543edcd6
commit
006ad3062f
@ -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 .= <<<JS
|
||||
_TREE_ICONS['$class'] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user