Index: openacs-4/packages/theme-zen/lib/lrn-master.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/theme-zen/lib/lrn-master.adp,v
diff -u -r1.1.2.4 -r1.1.2.5
--- openacs-4/packages/theme-zen/lib/lrn-master.adp 14 Feb 2007 03:24:04 -0000 1.1.2.4
+++ openacs-4/packages/theme-zen/lib/lrn-master.adp 19 Feb 2007 18:28:42 -0000 1.1.2.5
@@ -100,11 +100,13 @@
-
Begin main content
Index: openacs-4/packages/theme-zen/lib/lrn-master.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/theme-zen/lib/lrn-master.tcl,v
diff -u -r1.1.2.5 -r1.1.2.6
--- openacs-4/packages/theme-zen/lib/lrn-master.tcl 14 Feb 2007 03:19:24 -0000 1.1.2.5
+++ openacs-4/packages/theme-zen/lib/lrn-master.tcl 19 Feb 2007 18:28:42 -0000 1.1.2.6
@@ -260,9 +260,10 @@
-post_html $extra_spaces \
-link_all $link_all
]
+ns_log Notice "Huh? subnavbar: '$subnavbar'"
} else {
- set navbar " "
- set subnavbar " "
+ set navbar ""
+ set subnavbar ""
}
Index: openacs-4/packages/theme-zen/tcl/navigation-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/theme-zen/tcl/navigation-procs.tcl,v
diff -u -r1.1.2.2 -r1.1.2.3
--- openacs-4/packages/theme-zen/tcl/navigation-procs.tcl 19 Feb 2007 17:57:43 -0000 1.1.2.2
+++ openacs-4/packages/theme-zen/tcl/navigation-procs.tcl 19 Feb 2007 18:28:42 -0000 1.1.2.3
@@ -253,8 +253,8 @@
regsub -all {[^0-9]} $page_num {} page_num
}
- set subnavbar "
\n"
+ set subnavbar ""
db_foreach list_page_nums_select {} {
if {[string equal $page_num $sort_key]} {
append subnavbar "\n- $pretty_name
"
@@ -271,8 +271,10 @@
}
}
- append subnavbar "
"
-
+ if { $subnavbar eq "" } {
+ return ""
+ } else {
+ return "
\n"
+ }
}
-
}