Index: openacs-4/packages/acs-tcl/tcl/request-processor-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/request-processor-procs.tcl,v diff -u -N -r1.153.2.3 -r1.153.2.4 --- openacs-4/packages/acs-tcl/tcl/request-processor-procs.tcl 10 Apr 2019 18:14:07 -0000 1.153.2.3 +++ openacs-4/packages/acs-tcl/tcl/request-processor-procs.tcl 10 Apr 2019 19:38:34 -0000 1.153.2.4 @@ -993,8 +993,31 @@ && ![string match "*/CVS/*" $dir_index] } { if { [nsv_get rp_directory_listing_p .] } { - ns_returnnotice 200 "Directory listing of $dir_index" \ - [rp_html_directory_listing $dir_index] + + set title "Directory listing of [ad_conn url]" + set context [ad_conn url] + set body [rp_html_directory_listing $dir_index] + # + # Provide a simple template to use the master templates + # + set code [template::adp_compile -string { + + @title;literal@ + @context;literal@ + @body;noquote@ + }] + # + # Do the remaining OpenACS ADP magic + # + append code { + if { [info exists __adp_master] } { + set __adp_output \ + [template::adp_parse $__adp_master \ + [concat [list __adp_slave $__adp_output] [array get __adp_properties]]] + } + } + set __adp_stub "" + ns_return 200 text/html [template::adp_eval code] return } }