mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Fixed incorrect logic in CMSMain::generateTreeStylingJS() stopping different tree icons from working
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@98018 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
48a7c1ee87
commit
f3d0a4f54a
@ -264,9 +264,9 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
|
|
||||||
$fileImage = ($option == "folder") ? $icon . '-openfolder.gif' : $icon . '-file.gif';
|
$fileImage = ($option == "folder") ? $icon . '-openfolder.gif' : $icon . '-file.gif';
|
||||||
$openFolderImage = $icon . '-openfolder.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';
|
$closedFolderImage = $icon . '-closedfolder.gif';
|
||||||
if(!Director::fileExists($closedFolderImage) || $option = "file") $closedFolderImage = $fileImage;
|
if(!Director::fileExists($closedFolderImage) || $option == "file") $closedFolderImage = $fileImage;
|
||||||
|
|
||||||
$js .= <<<JS
|
$js .= <<<JS
|
||||||
_TREE_ICONS['$class'] = {
|
_TREE_ICONS['$class'] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user