Index: openacs-4/packages/acs-templating/tcl/util-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/tcl/util-procs.tcl,v diff -u -r1.28.2.11 -r1.28.2.12 --- openacs-4/packages/acs-templating/tcl/util-procs.tcl 1 Oct 2015 18:44:01 -0000 1.28.2.11 +++ openacs-4/packages/acs-templating/tcl/util-procs.tcl 6 Oct 2015 11:46:52 -0000 1.28.2.12 @@ -846,6 +846,7 @@ @param subsite_id subsite_id to determine theming information @return path of the resource (without extension) + @author Gustaf Neumann } { if {![regexp {^/(.*)} $style path]} { @@ -858,6 +859,14 @@ } if {$theme_dir ne ""} { + if {![file isdir $::acs::rootdir/$theme_dir]} { + ns_log warning "ResourceDir '$theme_dir' does not exist under '$::acs::rootdir';\ + ignore parameter setting of subsite $subsite_id" + set theme_dir "" + } + } + + if {$theme_dir ne ""} { set path $theme_dir/$type/$style if {![file exists $::acs::rootdir/$path.adp]} { unset path