Changeset 3457 for trunk/TablePlugin/lib/Foswiki/Plugins/TablePlugin.pm
- Timestamp:
- 04/16/09 10:30:34 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TablePlugin/lib/Foswiki/Plugins/TablePlugin.pm
r2910 r3457 27 27 package Foswiki::Plugins::TablePlugin; 28 28 29 require Foswiki::Func; # The plugins API30 require Foswiki::Plugins; # For the API version29 use Foswiki::Func (); # The plugins API 30 use Foswiki::Plugins (); # For the API version 31 31 32 use vars qw( $topic $installWeb $ VERSION $RELEASE $initialised );32 use vars qw( $topic $installWeb $initialised ); 33 33 34 # This should always be $Rev$ so that Foswiki can determine the checked-in 35 # status of the plugin. It is used by the build automation tools, so 36 # you should leave it alone. 37 $VERSION = '$Rev$'; 38 39 # This is a free-form string you can use to "name" your own plugin version. 40 # It is *not* used by the build automation tools, but is reported as part 41 # of the version number in PLUGINDESCRIPTIONS. 42 $RELEASE = '1.038'; 34 our $VERSION = '$Rev$'; 35 our $RELEASE = '1.038'; 36 our $SHORTDESCRIPTION = 'Control attributes of tables and sorting of table columns'; 37 our $NO_PREFS_IN_TOPIC = 1; 43 38 44 39 sub initPlugin { … … 63 58 ### my ( $text, $removed ) = @_; 64 59 65 my $sort = Foswiki::Func::getPreferencesValue( 'TABLEPLUGIN_SORT' ); 60 my $sort = Foswiki::Func::getPreferencesValue( 'TABLEPLUGIN_SORT' ) 61 || 'all'; 66 62 return unless ($sort && $sort =~ /^(all|attachments)$/) || 67 63 $_[0] =~ /%TABLE{.*?}%/;
Note: See TracChangeset
for help on using the changeset viewer.
