Item8315: CompareRevisionsAddOn should set "diff" context for the compare script
Priority: Normal
Current State: Closed
Released In: 1.1.0
Target Release: minor
Because the compare script is a replacement for the rdiff/rdiffauth scripts, the switchboard entry should set the "diff" context so that plugins can determine what type of processing to perform.
See also
Item8314. The
DirectedGraphPlugin needs to avoid rendering graphs for the comparison views of topics.
--
GeorgeClark - 30 Oct 2009
Current Switchboard entry
$Foswiki::cfg{SwitchBoard}{compare} = [
'Foswiki::Contrib::CompareRevisionsAddOn::Compare',
'compare',
{
'comparing' => 1
}
];
--+++ proposed update to latest style
$Foswiki::cfg{SwitchBoard}{compare} = {
package => 'Foswiki::Contrib::CompareRevisionsAddOn::Compare',
function => 'compare',
context => { diff => 1,
comparing => 1
},
};