According to
TWiki:TWiki.TWikiVariables, the
warn
parameter of %INCLUDE% is supposed to replace
$topic
with the name of the included topic. It also states that the default value is stored in %INCLUDEWARNING%.
When I tried using
$topic
in %INCLUDEWARNING%, no replacement was made. Looking at
_INCLUDE
in
TWiki.pm
I discovered that it was instead replacing
$includingTopic
with the included topic name.
See attached patch for suggested fix.
--
TWiki:Main.JasonHill - 17 Mar 2006
Thanks for reporting.
SVN 9373, TWiki4+DEVELOP.
--
SP
Closed with the release of 4.0.2
KJL