Changeset 4027 for trunk/CommentPlugin/lib/Foswiki/Plugins/CommentPlugin.pm
- Timestamp:
- 06/04/09 00:10:06 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CommentPlugin/lib/Foswiki/Plugins/CommentPlugin.pm
r2957 r4027 13 13 14 14 our $VERSION = '$Rev$'; 15 our $RELEASE = ' Foswiki-1.0.1';15 our $RELEASE = '04 Jun 2009'; 16 16 our $SHORTDESCRIPTION = 17 17 'Quickly post comments to a page without an edit/preview/save cycle'; … … 19 19 20 20 sub initPlugin { 21 22 21 #my ( $topic, $web, $user, $installWeb ) = @_; 23 22 return 1; … … 30 29 31 30 my $query = Foswiki::Func::getCgiQuery(); 32 return unless ( defined($query) );31 return unless( defined( $query ) ); 33 32 34 33 return unless $_[0] =~ m/%COMMENT({.*?})?%/o; … … 39 38 # SMELL: unreliable 40 39 my $previewing = ( $scriptname =~ /\/(preview|gnusave|rdiff|compare)/ ); 41 Foswiki::Plugins::CommentPlugin::Comment::prompt( $previewing, $_[0], $web,42 $topic );40 Foswiki::Plugins::CommentPlugin::Comment::prompt( $previewing, 41 $_[0], $web, $topic ); 43 42 } 44 43 45 44 sub beforeSaveHandler { 46 47 45 #my ( $text, $topic, $web ) = @_; 48 46 … … 54 52 my $action = $query->param('comment_action'); 55 53 56 return unless ( defined($action) && $action eq 'save' );57 Foswiki::Plugins::CommentPlugin::Comment::save( @_);54 return unless( defined( $action ) && $action eq 'save' ); 55 Foswiki::Plugins::CommentPlugin::Comment::save( @_ ); 58 56 } 59 57
Note: See TracChangeset
for help on using the changeset viewer.
