Changeset 4099
- Timestamp:
- 06/11/09 08:34:58 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HolidaylistPlugin/lib/Foswiki/Plugins/HolidaylistPlugin.pm
r4080 r4099 48 48 ); 49 49 50 # This should always be $Rev: 18 097$ so that TWiki can determine the checked-in50 # This should always be $Rev: 18100 $ so that TWiki can determine the checked-in 51 51 # status of the plugin. It is used by the build automation tools, so 52 52 # you should leave it alone. 53 $VERSION = '$Rev: 18 097$';53 $VERSION = '$Rev: 18100 $'; 54 54 55 55 # This is a free-form string you can use to "name" your own plugin version. … … 1543 1543 } 1544 1544 1545 $text =~ s/%INCLUDE{(.*?)}%/&expandIncludedEvents($1, \@processedTopics )/geo;1545 $text =~ s/%INCLUDE{(.*?)}%/&expandIncludedEvents($1, \@processedTopics, $web, $topic)/geo; 1546 1546 $text =~s/\%HOLIDAYLIST({(.*?)})?%//sg; 1547 1547 $text = Foswiki::Func::expandCommonVariables($text,$web,$topic); … … 1567 1567 sub expandIncludedEvents 1568 1568 { 1569 my( $theAttributes, $theProcessedTopicsRef ) = @_; 1570 1571 my ($theWeb, $theTopic) = ($web, $topic); 1572 1573 my $webTopic = Foswiki::Func::expandCommonVariables( Foswiki::Func::extractNameValuePair( $theAttributes ) ); 1574 my $section = Foswiki::Func::expandCommonVariables( Foswiki::Func::extractNameValuePair( $theAttributes, 'section') ); 1575 my $pattern = Foswiki::Func::expandCommonVariables( Foswiki::Func::extractNameValuePair( $theAttributes, 'pattern') ); 1569 my( $theAttributes, $theProcessedTopicsRef, $theWeb, $theTopic ) = @_; 1570 1571 my $webTopic = Foswiki::Func::expandCommonVariables( Foswiki::Func::extractNameValuePair( $theAttributes ), $theTopic, $theWeb ); 1572 my $section = Foswiki::Func::expandCommonVariables( Foswiki::Func::extractNameValuePair( $theAttributes, 'section'), $theTopic, $theWeb ); 1573 my $pattern = Foswiki::Func::expandCommonVariables( Foswiki::Func::extractNameValuePair( $theAttributes, 'pattern'), $theTopic, $theWeb ); 1576 1574 1577 1575 … … 1597 1595 1598 1596 # recursively expand includes: 1599 $text =~ s/%INCLUDE{(.*?)}%/&expandIncludedEvents( $1, $theProcessedTopicsRef )/geo;1597 $text =~ s/%INCLUDE{(.*?)}%/&expandIncludedEvents( $1, $theProcessedTopicsRef, $theWeb, $theTopic )/geo; 1600 1598 1601 1599 # expand common variables:
Note: See TracChangeset
for help on using the changeset viewer.
