Index: openacs-4/packages/xowiki/tcl/xowiki-callback-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-callback-procs.tcl,v diff -u -r1.78.2.4 -r1.78.2.5 --- openacs-4/packages/xowiki/tcl/xowiki-callback-procs.tcl 24 Feb 2021 15:52:34 -0000 1.78.2.4 +++ openacs-4/packages/xowiki/tcl/xowiki-callback-procs.tcl 25 Feb 2021 10:37:33 -0000 1.78.2.5 @@ -89,6 +89,27 @@ # memory around, so we can delete it. rename __upgrade "" } + + ad_proc -public -callback subsite::parameter_changed -impl xowiki { + -package_id:required + -parameter:required + -value:required + } { + Implementation of subsite::parameter_changed for xowiki parameters. + + @param package_id the package_id of the package the parameter was changed for + @param parameter the parameter name + @param value the new value + } { + if {[::xowiki::Package is_xowiki_p $package_id]} { + if {$parameter eq "use_hstore" && $value eq 1} { + # hstore has been activated: make sure instance attributes are + # persisted in there + ::xowiki::hstore::update_hstore $package_id + } + } + } + } ::xo::library source_dependent