From: <Pet...@nt...> - 2005-11-27 00:48:55
|
Author: PeterThoeny Date: 2005-11-26 16:46:54 -0800 (Sat, 26 Nov 2005) New Revision: 7655 Modified: twiki/branches/DEVELOP/lib/TWiki/Templates.pm Log: Item0: For skin path, allow comma-space instead of just comma separator. For consistency Modified: twiki/branches/DEVELOP/lib/TWiki/Templates.pm =================================================================== --- twiki/branches/DEVELOP/lib/TWiki/Templates.pm 2005-11-27 00:13:17 UTC (rev 7654) +++ twiki/branches/DEVELOP/lib/TWiki/Templates.pm 2005-11-27 00:46:54 UTC (rev 7655) @@ -152,7 +152,7 @@ my $else = $params->remove('else'); if( $context ) { $template = $then if defined( $then ); - foreach my $id ( split( /, */, $context )) { + foreach my $id ( split( /\,\s*/, $context )) { unless( $this->{session}->{context}->{$id} ) { $template = ( $else || '' ); last; @@ -344,7 +344,7 @@ return TWiki::readFile( $TWiki::cfg{TemplateDir}.'/'.$name ); } - my @skinList = split( /,+/, $skins ); + my @skinList = split( /\,\s*/, $skins ); # Search the web dir and the root dir for the skinned version first my @candidates; |