Index: openacs-4/packages/xowiki/tcl/xowiki-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-procs.tcl,v
diff -u -N -r1.33 -r1.34
--- openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 3 May 2006 14:14:58 -0000 1.33
+++ openacs-4/packages/xowiki/tcl/xowiki-procs.tcl 14 May 2006 20:03:53 -0000 1.34
@@ -594,7 +594,7 @@
# there is something syntactically wrong
return "${ch}Error in '{{$arg}}' in [my set name]
\n\
Syntax: adp <name of adp-file> {<argument list>}
\n
- Invalid argument list: '$adp_args'; must be attribute value pairs (even number of elements)"
+ Invalid argument list: '$adp'; must be attribute value pairs (even number of elements)"
}
set adp [string map { " "} $adp]
set adp_fn [lindex $adp 0]
@@ -606,7 +606,10 @@
Invalid argument list: '$adp_args'; must be attribute value pairs (even number of elements)"
}
lappend adp_args __including_page [self]
+ set including_page_level [template::adp_level]
if {[catch {set page [template::adp_include $adp_fn $adp_args]} errorMsg]} {
+ # in case of error, reset the adp_level to the previous value
+ set ::template::parse_level $including_page_level
return "${ch}Error during evaluation of '{{$arg}}' in [my set name]
\n\
adp_include returned error message: $errorMsg
\n"
}