Ignore:
Timestamp:
04/16/09 10:30:34 (3 years ago)
Author:
CrawfordCurrie
Message:

Item1383: removed support for settings in the plugin topic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TablePlugin/lib/Foswiki/Plugins/TablePlugin.pm

    r2910 r3457  
    2727package Foswiki::Plugins::TablePlugin; 
    2828 
    29 require Foswiki::Func;    # The plugins API 
    30 require Foswiki::Plugins; # For the API version 
     29use Foswiki::Func ();    # The plugins API 
     30use Foswiki::Plugins (); # For the API version 
    3131 
    32 use vars qw( $topic $installWeb $VERSION $RELEASE $initialised ); 
     32use vars qw( $topic $installWeb $initialised ); 
    3333 
    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'; 
     34our $VERSION = '$Rev$'; 
     35our $RELEASE = '1.038'; 
     36our $SHORTDESCRIPTION = 'Control attributes of tables and sorting of table columns'; 
     37our $NO_PREFS_IN_TOPIC = 1; 
    4338 
    4439sub initPlugin { 
     
    6358    ### my ( $text, $removed ) = @_; 
    6459 
    65     my $sort = Foswiki::Func::getPreferencesValue( 'TABLEPLUGIN_SORT' ); 
     60    my $sort = Foswiki::Func::getPreferencesValue( 'TABLEPLUGIN_SORT' ) 
     61      || 'all'; 
    6662    return unless ($sort && $sort =~ /^(all|attachments)$/) || 
    6763      $_[0] =~ /%TABLE{.*?}%/; 
Note: See TracChangeset for help on using the changeset viewer.