Index: openacs-4/packages/acs-templating/tcl/template-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/template-init.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-templating/tcl/template-init.tcl 7 Aug 2017 23:48:02 -0000 1.4 +++ openacs-4/packages/acs-templating/tcl/template-init.tcl 3 Sep 2024 15:37:35 -0000 1.5 @@ -8,17 +8,19 @@ # License. Full text of the license is available from the GNU Project: # http://www.fsf.org/copyleft/gpl.html -# XXX (bquinn): This file should not be here. - -set pkg_id [apm_package_id_from_key acs-templating] - -if { [parameter::get -package_id $pkg_id -parameter ShowCompiledTemplatesP -default 0] } { - ad_register_filter postauth GET *.cmp cmp_page_filter +if { [parameter::get_from_package_key \ + -package_key acs-templating \ + -parameter ShowCompiledTemplatesP \ + -default 0] } { + ad_register_filter postauth GET *.cmp template::cmp_page_filter } -if { [parameter::get -package_id $pkg_id -parameter ShowDataDictionariesP -default 0] } { - ad_register_filter postauth GET *.dat dat_page_filter - ad_register_filter postauth GET *.frm frm_page_filter +if { [parameter::get_from_package_key \ + -package_key acs-templating \ + -parameter ShowDataDictionariesP \ + -default 0] } { + ad_register_filter postauth GET *.dat template::dat_page_filter + ad_register_filter postauth GET *.frm template::frm_page_filter } # Local variables: