From 9fc879db8f81e2cb8b7ecb6e0a017803c1dc8795 Mon Sep 17 00:00:00 2001 From: echicken <> Date: Mon, 15 Aug 2011 02:58:32 +0000 Subject: [PATCH] Didn't account for a 'CVS' subdirectory under /sidebar. --- web/root/ecWeb/themes/blacktastic/layout.ssjs | 1 + web/root/ecWeb/themes/blocktastic-r/layout.ssjs | 1 + web/root/ecWeb/themes/blocktastic/layout.ssjs | 1 + web/root/ecWeb/themes/hotdogstand/layout.ssjs | 1 + web/root/ecWeb/themes/shitenade/layout.ssjs | 1 + web/root/ecWeb/themes/stocktastic-r/layout.ssjs | 1 + web/root/ecWeb/themes/stocktastic/layout.ssjs | 1 + 7 files changed, 7 insertions(+) diff --git a/web/root/ecWeb/themes/blacktastic/layout.ssjs b/web/root/ecWeb/themes/blacktastic/layout.ssjs index fd20ee2182..2fe6347029 100644 --- a/web/root/ecWeb/themes/blacktastic/layout.ssjs +++ b/web/root/ecWeb/themes/blacktastic/layout.ssjs @@ -26,6 +26,7 @@ function openPage(pageTitle) { var c = 0; var d = directory(webIni.webRoot + "/sidebar/*"); for(var f in d) { + if(file_isdir(d[f])) continue; print("<div class='sidebarBox standardBorder standardPadding underMargin'>"); if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]); if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") { diff --git a/web/root/ecWeb/themes/blocktastic-r/layout.ssjs b/web/root/ecWeb/themes/blocktastic-r/layout.ssjs index fd20ee2182..2fe6347029 100644 --- a/web/root/ecWeb/themes/blocktastic-r/layout.ssjs +++ b/web/root/ecWeb/themes/blocktastic-r/layout.ssjs @@ -26,6 +26,7 @@ function openPage(pageTitle) { var c = 0; var d = directory(webIni.webRoot + "/sidebar/*"); for(var f in d) { + if(file_isdir(d[f])) continue; print("<div class='sidebarBox standardBorder standardPadding underMargin'>"); if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]); if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") { diff --git a/web/root/ecWeb/themes/blocktastic/layout.ssjs b/web/root/ecWeb/themes/blocktastic/layout.ssjs index fd20ee2182..2fe6347029 100644 --- a/web/root/ecWeb/themes/blocktastic/layout.ssjs +++ b/web/root/ecWeb/themes/blocktastic/layout.ssjs @@ -26,6 +26,7 @@ function openPage(pageTitle) { var c = 0; var d = directory(webIni.webRoot + "/sidebar/*"); for(var f in d) { + if(file_isdir(d[f])) continue; print("<div class='sidebarBox standardBorder standardPadding underMargin'>"); if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]); if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") { diff --git a/web/root/ecWeb/themes/hotdogstand/layout.ssjs b/web/root/ecWeb/themes/hotdogstand/layout.ssjs index fd20ee2182..2fe6347029 100644 --- a/web/root/ecWeb/themes/hotdogstand/layout.ssjs +++ b/web/root/ecWeb/themes/hotdogstand/layout.ssjs @@ -26,6 +26,7 @@ function openPage(pageTitle) { var c = 0; var d = directory(webIni.webRoot + "/sidebar/*"); for(var f in d) { + if(file_isdir(d[f])) continue; print("<div class='sidebarBox standardBorder standardPadding underMargin'>"); if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]); if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") { diff --git a/web/root/ecWeb/themes/shitenade/layout.ssjs b/web/root/ecWeb/themes/shitenade/layout.ssjs index fd20ee2182..2fe6347029 100644 --- a/web/root/ecWeb/themes/shitenade/layout.ssjs +++ b/web/root/ecWeb/themes/shitenade/layout.ssjs @@ -26,6 +26,7 @@ function openPage(pageTitle) { var c = 0; var d = directory(webIni.webRoot + "/sidebar/*"); for(var f in d) { + if(file_isdir(d[f])) continue; print("<div class='sidebarBox standardBorder standardPadding underMargin'>"); if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]); if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") { diff --git a/web/root/ecWeb/themes/stocktastic-r/layout.ssjs b/web/root/ecWeb/themes/stocktastic-r/layout.ssjs index fd20ee2182..2fe6347029 100644 --- a/web/root/ecWeb/themes/stocktastic-r/layout.ssjs +++ b/web/root/ecWeb/themes/stocktastic-r/layout.ssjs @@ -26,6 +26,7 @@ function openPage(pageTitle) { var c = 0; var d = directory(webIni.webRoot + "/sidebar/*"); for(var f in d) { + if(file_isdir(d[f])) continue; print("<div class='sidebarBox standardBorder standardPadding underMargin'>"); if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]); if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") { diff --git a/web/root/ecWeb/themes/stocktastic/layout.ssjs b/web/root/ecWeb/themes/stocktastic/layout.ssjs index fd20ee2182..2fe6347029 100644 --- a/web/root/ecWeb/themes/stocktastic/layout.ssjs +++ b/web/root/ecWeb/themes/stocktastic/layout.ssjs @@ -26,6 +26,7 @@ function openPage(pageTitle) { var c = 0; var d = directory(webIni.webRoot + "/sidebar/*"); for(var f in d) { + if(file_isdir(d[f])) continue; print("<div class='sidebarBox standardBorder standardPadding underMargin'>"); if(file_getext(d[f]).toUpperCase() == ".SSJS" || file_getext(d[f]).toUpperCase() == ".JS") load(d[f]); if(file_getext(d[f]).toUpperCase() == ".TXT" || file_getext(d[f]).toUpperCase() == ".HTML") { -- GitLab