Ignore:
Timestamp:
10/15/09 19:28:59 (3 years ago)
Author:
KennethLavrsen
Message:

Item2260: MailerContrib cannot find email templates based on skin or web
The checkin does the following

  • It makes a tiny little fix in MailerContrib.pm where I pushTopicContext before loading mail template and pop it again afterwards
  • Updates the the documentation to show by example how to tailor the mail message
  • Merge over the code from trunk. This introduces a bug fix from Item1603 which for some reason was only applied to trunk
  • And with this merge also merge over a lot of perl tinying.

It was too difficult to separate the two once I was this far. Look at next checkin in trunk to see only the actual code changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release01x00/MailerContrib/lib/Foswiki/Contrib/MailerContrib/UpData.pm

    r1340 r5269  
    4343    my ( $class, $session, $web ) = @_; 
    4444    my $this = bless( {}, $class ); 
    45     $this->{web} = $web; 
     45    $this->{web}     = $web; 
    4646    $this->{session} = $session; 
    4747    return $this; 
     
    5858    my ( $this, $topic ) = @_; 
    5959 
    60     if ( ! defined( $this->{parent}{$topic} )) { 
    61         my( $meta, $text ) = 
    62           Foswiki::Func::readTopic( $this->{web}, $topic ); 
     60    if ( !defined( $this->{parent}{$topic} ) ) { 
     61        my ( $meta, $text ) = Foswiki::Func::readTopic( $this->{web}, $topic ); 
    6362        my $parent = $meta->get('TOPICPARENT'); 
    6463        $this->{parent}{$topic} = $parent->{name} if $parent; 
Note: See TracChangeset for help on using the changeset viewer.