if you make a skin version of a tmpl, and start by including the generic version of that tmpl at the top, you never see twiki again
ie. if view.svenskin.tmpl has %TMPL:INCLUDE{"view"}%
as I'd like to create customisations to the tmpls that work for more than one skin, i'd rather this would continue down the SKIN path, without the recursion.
Index: TWiki/Templates.pm
===================================================================
--- TWiki/Templates.pm (revision 10654)
+++ TWiki/Templates.pm (working copy)
@@ -388,6 +388,10 @@
my $retrieve = $candidate->{retrieve};
my $name = $candidate->{name};
if( &$validate( $name )) {
+ next if (defined($this->{files}->{$name}));
+ #recursion prevention.
+ $this->{files}->{$name} = 1;
+
return &$retrieve( $name );
}
}
I don't see any problem caused by this change.
AC
Setting "Merge to" = patch so it will go in release notes.
--
SP