Index: openacs-4/packages/acs-templating/tcl/tag-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/tag-init.tcl,v diff -u -r1.39.2.2 -r1.39.2.3 --- openacs-4/packages/acs-templating/tcl/tag-init.tcl 29 Aug 2015 10:10:34 -0000 1.39.2.2 +++ openacs-4/packages/acs-templating/tcl/tag-init.tcl 29 Aug 2015 10:20:04 -0000 1.39.2.3 @@ -142,7 +142,7 @@ template::adp_append_code "}" #End developer support frame around subordinate template. - if { [info commands ::ds_enabled_p] ne "" && [info commands ::ds_adp_end_box] ne "" } { + if { $ds && [info commands ::ds_enabled_p] ne "" && [info commands ::ds_adp_end_box] ne "" } { ::ds_adp_end_box -stub "\[template::util::url_to_file \"$src\" \"\$__adp_stub\"\]" } @@ -677,7 +677,7 @@ " #End developer support frame around subordinate template. - if { [info commands ::ds_enabled_p] ne "" && [info commands ::ds_adp_end_box] ne "" } { + if { $ds && [info commands ::ds_enabled_p] ne "" && [info commands ::ds_adp_end_box] ne "" } { ::ds_adp_end_box -stub "\[template::util::url_to_file \"$src\" \"\$__adp_stub\"\]" }