Index: openacs-4/packages/acs-templating/tcl/table-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/table-procs.tcl,v diff -u -r1.7.10.2 -r1.7.10.3 --- openacs-4/packages/acs-templating/tcl/table-procs.tcl 16 Oct 2013 10:16:17 -0000 1.7.10.2 +++ openacs-4/packages/acs-templating/tcl/table-procs.tcl 16 Oct 2013 10:55:59 -0000 1.7.10.3 @@ -242,8 +242,8 @@ set style [ns_set iget $params style] # Use the style unless the template is specified in the tag - if { [template::util::is_nil chunk] } { - if { [template::util::is_nil style] } { + if { $chunk eq "" } { + if { $style eq "" } { template::adp_append_code "set __tablewidget_style \"$style\"" } else { template::adp_append_code "set __tablewidget_style \"\$tablewidget:${name}(style)\"" Index: openacs-4/packages/acs-templating/tcl/util-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/util-procs.tcl,v diff -u -r1.26.2.5 -r1.26.2.6 --- openacs-4/packages/acs-templating/tcl/util-procs.tcl 6 Oct 2013 13:20:35 -0000 1.26.2.5 +++ openacs-4/packages/acs-templating/tcl/util-procs.tcl 16 Oct 2013 10:55:59 -0000 1.26.2.6 @@ -669,7 +669,11 @@ } -ad_proc -public template::util::get_param { name {section {}} {key {}} } { +ad_proc -public template::util::get_param { + name + {section ""} + {key ""} +} { Retreive a stored parameter, or "" if no such parameter If section/key are present, read the parameter from the specified section.key in the INI file, and cache them under the given name @@ -678,10 +682,10 @@ if { ![nsv_exists __template_config $name] } { # Extract the parameter from the ini file if possible - if { ![template::util::is_nil section] } { + if { $section ne "" } { # Use the name if no key is specified - if { [template::util::is_nil key] } { + if { $key ne "" } { set key $name } @@ -713,7 +717,7 @@ Analogous to SQL NVL } { - if { [template::util::is_nil value] } { + if { $value ne "" } { return $value_if_null } else { return $value