Index: openacs-4/packages/new-portal/tcl/portal-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/tcl/portal-procs.tcl,v
diff -u -r1.22 -r1.23
--- openacs-4/packages/new-portal/tcl/portal-procs.tcl 9 Oct 2001 03:27:48 -0000 1.22
+++ openacs-4/packages/new-portal/tcl/portal-procs.tcl 9 Oct 2001 14:38:09 -0000 1.23
@@ -288,11 +288,11 @@
# get the complete, evaluated element.
# if there's an error, report it.
if { [catch {set element_data [evaluate_element $element_id] } errmsg ] } {
- if { [ad_parameter log_datasource_errors_p] } {
+ if { [ad_parameter log_datasource_errors_p] == 1} {
ns_log Error "portal: $errmsg"
}
- if { [ad_parameter show_datasource_errors_p] } {
+ if { [ad_parameter show_datasource_errors_p] == 1} {
set element(content) "
$errmsg
"
set element(mime_type) "text/html"
} else {
Index: openacs-4/packages/new-portal/www/render-element.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/www/render-element.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/new-portal/www/render-element.tcl 5 Oct 2001 00:29:14 -0000 1.2
+++ openacs-4/packages/new-portal/www/render-element.tcl 9 Oct 2001 14:38:09 -0000 1.3
@@ -13,11 +13,11 @@
# get the complete, evaluated element.
# if there's an error, report it.
if { [catch {set element_data [portal::evaluate_element $element_id] } errmsg ] } {
- if { [ad_parameter log_datasource_errors_p] } {
+ if { [ad_parameter log_datasource_errors_p] == 1} {
ns_log Error "portal: $errmsg"
}
- if { [ad_parameter show_datasource_errors_p] } {
+ if { [ad_parameter show_datasource_errors_p] == 1} {
set element(content) "$errmsg
"
set element(mime_type) "text/html"
} else {
Index: openacs-4/packages/new-portal/www/layouts/simple-element.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/www/layouts/simple-element.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/new-portal/www/layouts/simple-element.adp 5 Oct 2001 00:21:55 -0000 1.1
+++ openacs-4/packages/new-portal/www/layouts/simple-element.adp 9 Oct 2001 14:38:09 -0000 1.2
@@ -1,13 +1,13 @@
-