Index: trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/commands.php
===================================================================
diff -u -r5049 -r5182
--- trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/commands.php (.../commands.php) (revision 5049)
+++ trunk/admin/editor/cmseditor/editor/filemanager/browser/default/connectors/php/commands.php (.../commands.php) (revision 5182)
@@ -152,6 +152,12 @@
$custom_cms = $rs->fields['value'];
}
*/
+ if (GetConfigValue('custom_cms')) {
+ $filter = 'AND st.st_name NOT IN (' . GetConfigValue('custom_cms') . ')';
+ }
+ else {
+ $filter = '';
+ }
if ( $email_templates_folder_id == "" ) $email_templates_folder_id = 0;
if ( $cms_mode == 1 ) {
$query = "
@@ -168,7 +174,7 @@
(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'
+ AND st_path != '/cms'" . $filter . "
ORDER BY st.st_order";
}
else {
@@ -184,14 +190,12 @@
working_blocks AS wb
ON
(st.st_id = wb.template_id) AND (wb.block_type = 3)
- WHERE
- st.st_parent_id = ".$st_id."
+ WHERE st.st_parent_id = ".$st_id."
AND st_id != ".$email_templates_folder_id."
- AND st_path != '/cms%'
+ AND st_path != '/cms%'" . $filter . "
ORDER BY st.st_order";
}
- //echo $query."
";
-
+// echo $query."
";
$rs = $conn->Execute($query);
if ($rs && !$rs->EOF)
{