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 -r1.148 -r1.149 --- openacs-4/packages/acs-tcl/tcl/request-processor-procs.tcl 19 Nov 2018 18:19:12 -0000 1.148 +++ openacs-4/packages/acs-tcl/tcl/request-processor-procs.tcl 21 Nov 2018 08:57:38 -0000 1.149 @@ -476,9 +476,7 @@ There are three mapping possibilities: /resources/package-key/* maps to - root/packages/package-key/www/resources/*. This mapping is theme - aware and will be therefore overridden by - root/packages//resources/templates/packages/package-key/www/resources. + root/packages/package-key/www/resources/*. If that fails, we map to root/packages/acs-subsite/www/resources/* If that fails, we map to root/www/resources/* @@ -500,11 +498,14 @@ set package_key [lindex $urlv 1] set resource [join [lrange $urlv 2 end] /] - set path "packages/$package_key/www/resources/$resource" - set themed_path [template::resource_path -type templates -style $path] - if { [file isfile $themed_path] } { - return [rp_serve_resource_file $themed_path] - } + # This would map resources to their alternative in the theme + # package. Works, but needs some extra tought regarding + # performance etc. and is therefore commented out. + # set path "packages/$package_key/www/resources/$resource" + # set themed_path [template::resource_path -type templates -style $path] + # if { [file isfile $themed_path] } { + # return [rp_serve_resource_file $themed_path] + # } set path "[acs_package_root_dir $package_key]/www/resources/$resource" if { [file isfile $path] } {