- Timestamp:
- 06/04/09 00:08:33 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release01x00/CommentPlugin/lib/Foswiki/Plugins/CommentPlugin.pm
r1952 r4026 13 13 14 14 our $VERSION = '$Rev$'; 15 our $RELEASE = 'Foswiki-1.0.1'; 16 our $SHORTDESCRIPTION = 'Quickly post comments to a page without an edit/preview/save cycle'; 15 our $RELEASE = '04 Jun 2009'; 16 our $SHORTDESCRIPTION = 17 'Quickly post comments to a page without an edit/preview/save cycle'; 17 18 our $NO_PREFS_IN_TOPIC = 1; 18 19 … … 28 29 29 30 my $query = Foswiki::Func::getCgiQuery(); 30 return unless( defined( $query ) );31 return unless( defined( $query ) ); 31 32 32 33 return unless $_[0] =~ m/%COMMENT({.*?})?%/o; … … 34 35 # SMELL: Nasty, tacky way to find out where we were invoked from 35 36 my $scriptname = $ENV{'SCRIPT_NAME'} || ''; 37 36 38 # SMELL: unreliable 37 my $previewing = ( $scriptname =~ /\/(preview|gnusave|rdiff|compare)/);39 my $previewing = ( $scriptname =~ /\/(preview|gnusave|rdiff|compare)/ ); 38 40 Foswiki::Plugins::CommentPlugin::Comment::prompt( $previewing, 39 41 $_[0], $web, $topic );
Note: See TracChangeset
for help on using the changeset viewer.
