- Timestamp:
- 11/19/08 15:00:00 (4 years ago)
- Location:
- trunk/MailerContrib/lib/Foswiki
- Files:
-
- 1 edited
- 1 moved
-
. (moved) (moved from trunk/MailerContrib/lib/TWiki)
-
Contrib/MailerContrib/Change.pm (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/MailerContrib/lib/Foswiki/Contrib/MailerContrib/Change.pm
r781 r811 2 2 # 3 3 # Copyright (C) 2004 Wind River Systems Inc. 4 # Copyright (C) 1999-2006 TWiki Contributors.5 # All Rights Reserved. TWiki Contributors4 # Copyright (C) 1999-2006 Foswiki Contributors. 5 # All Rights Reserved. Foswiki Contributors 6 6 # are listed in the AUTHORS file in the root of this distribution. 7 7 # NOTE: Please extend that file, not this notice. … … 23 23 =pod 24 24 25 ---+ package TWiki::Contrib::MailerContrib::Change25 ---+ package Foswiki::Contrib::MailerContrib::Change 26 26 Object that represents a change to a topic. 27 27 28 28 =cut 29 29 30 package TWiki::Contrib::MailerContrib::Change;31 32 use TWiki;30 package Foswiki::Contrib::MailerContrib::Change; 31 32 use Foswiki; 33 33 34 34 use URI::Escape; … … 57 57 my $user; 58 58 # SMELL: call to unpublished core function 59 if (defined(& TWiki::Users::findUser)) {59 if (defined(&Foswiki::Users::findUser)) { 60 60 $user = $session->{users}->findUser( $author, undef, 1 ); 61 61 $this->{AUTHOR} = $user ? $user->wikiName() : $author; 62 62 } else { 63 $this->{AUTHOR} = TWiki::Func::getWikiName($author);63 $this->{AUTHOR} = Foswiki::Func::getWikiName($author); 64 64 } 65 65 $this->{TIME} = $time; … … 90 90 sub merge { 91 91 my( $this, $other ) = @_; 92 ASSERT($this->isa( ' TWiki::Contrib::MailerContrib::Change' )) if DEBUG;93 ASSERT($other->isa( ' TWiki::Contrib::MailerContrib::Change' )) if DEBUG;92 ASSERT($this->isa( 'Foswiki::Contrib::MailerContrib::Change' )) if DEBUG; 93 ASSERT($other->isa( 'Foswiki::Contrib::MailerContrib::Change' )) if DEBUG; 94 94 95 95 if( $other->{CURR_REV} > $this->{CURR_REV} ) { … … 119 119 120 120 unless( defined $this->{HTML_SUMMARY} ) { 121 if( defined & TWiki::Func::summariseChanges ) {121 if( defined &Foswiki::Func::summariseChanges ) { 122 122 $this->{HTML_SUMMARY} = 123 TWiki::Func::summariseChanges(123 Foswiki::Func::summariseChanges( 124 124 $this->{WEB}, $this->{TOPIC}, $this->{BASE_REV}, 125 125 $this->{CURR_REV}, 1 ); … … 134 134 $html =~ s/%TOPICNAME%/$this->{TOPIC}/g; 135 135 $html =~ s/%AUTHOR%/$this->{AUTHOR}/g; 136 my $tim = TWiki::Time::formatTime( $this->{TIME} );136 my $tim = Foswiki::Time::formatTime( $this->{TIME} ); 137 137 $html =~ s/%TIME%/$tim/go; 138 138 $html =~ s/%CUR_REV%/$this->{CURR_REV}/g; … … 149 149 } 150 150 $html =~ s/%REVISION%/$frev/g; 151 $html = TWiki::Func::expandCommonVariables(151 $html = Foswiki::Func::expandCommonVariables( 152 152 $html, $this->{TOPIC}, $this->{WEB} ); 153 $html = TWiki::Func::renderText( $html );153 $html = Foswiki::Func::renderText( $html ); 154 154 $html =~ s/%TEXTHEAD%/$this->{HTML_SUMMARY}/g; 155 155 … … 169 169 unless( defined $this->{TEXT_SUMMARY} ) { 170 170 my $s; 171 if( defined & TWiki::Func::summariseChanges ) {172 $s = TWiki::Func::summariseChanges(171 if( defined &Foswiki::Func::summariseChanges ) { 172 $s = Foswiki::Func::summariseChanges( 173 173 $this->{WEB}, $this->{TOPIC}, $this->{BASE_REV}, 174 174 $this->{CURR_REV}, 0 ); … … 183 183 } 184 184 185 my $tim = TWiki::Time::formatTime( $this->{TIME} );185 my $tim = Foswiki::Time::formatTime( $this->{TIME} ); 186 186 187 187 # URL-encode topic names for use of I18N topic names in plain text
Note: See TracChangeset
for help on using the changeset viewer.
