- Timestamp:
- 04/15/09 15:43:46 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PreferencesPlugin/lib/Foswiki/Plugins/PreferencesPlugin.pm
r1493 r3447 26 26 use strict; 27 27 28 require Foswiki::Func; # The plugins API 29 require Foswiki::Plugins; # For the API version 30 31 use vars qw( $VERSION $RELEASE @shelter ); 32 33 # This should always be $Rev$ so that Foswiki can determine the checked-in 34 # status of the plugin. It is used by the build automation tools, so 35 # you should leave it alone. 36 $VERSION = '$Rev$'; 37 38 # This is a free-form string you can use to "name" your own plugin version. 39 # It is *not* used by the build automation tools, but is reported as part 40 # of the version number in PLUGINDESCRIPTIONS. 41 $RELEASE = 'Foswiki-1.0'; 28 use Foswiki::Func (); # The plugins API 29 use Foswiki::Plugins (); # For the API version 30 31 use vars qw( @shelter ); 32 33 our $VERSION = '$Rev$'; 34 our $RELEASE = 'Foswiki-1.0'; 35 our $SHORTDESCRIPTION = 'Allows editing of preferences using fields predefined in a form'; 36 our $NO_PREFS_IN_TOPIC = 1; 42 37 43 38 my $MARKER = "\007"; … … 86 81 if ( $action eq 'edit' ) { 87 82 Foswiki::Func::setTopicEditLock( $web, $topic, 1 ); 88 83 89 84 # Replace setting values by form fields but not inside comments Item4816 90 85 my $outtext = ''; … … 102 97 } 103 98 $_[0] = $outtext; 104 99 105 100 $_[0] =~ s/%EDITPREFERENCES({.*?})?%/ 106 101 _generateControlButtons($web, $topic)/ge;
Note: See TracChangeset
for help on using the changeset viewer.
