One of the modification needed in the Discussion class is weird though. $Configuration need now to be passed by reference: function GetPropertiesFromDataSet($DataSet, &$Configuration) { ... if ($Configuration['ENABLE_WHISPERS']) { ... $TmpCount = ($this->CountComments / $Configuration['COMMENTS_PER_PAGE']); ... } Why does Discussion::GetPropertiesFromDataSet() need the $Configuration as argument in the first place. Can't it use $Context->Configuration? Maybe it has been left before the class became a Delegation children class. I don't see other raison. Do you think I can replace $Configuration with $Context->Configuration?
I think its safe to make that change... but then that would make the parameter useless. I notice there is also a GetPropertiesFromForm method in this class that gets passed $Context.
I wonder if this is legal:function GetPropertiesFromDataSet($DataSet, &$Configuration = &$this->Context->Configuration) { That way, it won't break existing code that calls the function expecting to have to pass configuration.
I suppose it is probably better to break existing code and force it to be updated properly instead of keeping a strange hack around.