Index: trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/commands.php =================================================================== diff -u -r1974 -r1999 --- trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/commands.php (.../commands.php) (revision 1974) +++ trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/commands.php (.../commands.php) (revision 1999) @@ -114,6 +114,13 @@ $email_templates_folder_id = $rs->fields['value']; } + $query = "SELECT value FROM config WHERE name = 'custom_cms'"; + $rs = $conn->Execute($query); + if ($rs && !$rs->EOF) + { + $custom_cms = $rs->fields['value']; + } + if ( $email_templates_folder_id == "" ) $email_templates_folder_id = 0; @@ -130,8 +137,10 @@ live_blocks AS lb ON (st.st_id = lb.template_id) AND (lb.block_type = 3) - WHERE - st.st_parent_id = ".$st_id." AND st_id != ".$email_templates_folder_id." AND st_path != '/cms' + WHERE st.st_parent_id = ".$st_id." + AND st_id != ".$email_templates_folder_id." + AND st_path != '/cms' + AND st_name NOT IN (".$custom_cms.") ORDER BY st.st_order"; } else { @@ -148,7 +157,10 @@ ON (st.st_id = wb.template_id) AND (wb.block_type = 3) WHERE - st.st_parent_id = ".$st_id." AND st_id != ".$email_templates_folder_id." AND st_path != '/cms%' + st.st_parent_id = ".$st_id." + AND st_id != ".$email_templates_folder_id." + AND st_path != '/cms%' + AND st_name NOT IN (".$custom_cms.") ORDER BY st.st_order"; }