Index: trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/commands.php =================================================================== diff -u -r5298 -r5299 --- trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/commands.php (.../commands.php) (revision 5298) +++ trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/commands.php (.../commands.php) (revision 5299) @@ -159,6 +159,7 @@ $filter = ''; } if ( $email_templates_folder_id == "" ) $email_templates_folder_id = 0; + $system_tpl_id = GetConfigValue('system_tpl_id'); if ( $cms_mode == 1 ) { $query = " SELECT st.*, @@ -173,8 +174,8 @@ ON (st.st_id = lb.template_id) AND (lb.block_type = 3) WHERE st.st_parent_id = ".$st_id." - AND st.st_id != 1 - AND st.st_parent_id != 1 + AND st.st_id != '$system_tpl_id' + AND st.st_parent_id != '$system_tpl_id' AND st_id != ".$email_templates_folder_id." AND st_path != '/cms'" . $filter . " ORDER BY st.st_order"; @@ -194,8 +195,8 @@ (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.st_id != 1 - AND st.st_parent_id != 1 + AND st.st_id != '$system_tpl_id' + AND st.st_parent_id != '$system_tpl_id' AND st_path != '/cms%'" . $filter . " ORDER BY st.st_order"; }