Ignore:
Timestamp:
04/15/09 16:48:29 (3 years ago)
Author:
CrawfordCurrie
Message:

Item1383: make plugin get its preferences from global preferences, instead of from the plugin topic

File:
1 edited

Legend:

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

    r3328 r3448  
    2828# ========================= 
    2929use vars qw( 
    30         $web $topic $user $installWeb $VERSION $RELEASE $debug $skipInclude $doInit 
     30        $web $topic $user $installWeb $debug $skipInclude $doInit 
    3131    ); 
    3232 
    33 # This should always be $Rev: 13748 $ 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: 13748 $'; 
    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 = '29 Mar 2009'; 
     33our $VERSION = '$Rev: 13748 $'; 
     34our $RELEASE = '29 Mar 2009'; 
     35our $NO_PREFS_IN_TOPIC = 1; 
    4236 
    4337$doInit = 0; 
     
    5549 
    5650    # Get plugin debug flag 
    57     $debug = Foswiki::Func::getPreferencesFlag( "SPREADSHEETPLUGIN_DEBUG" ); 
     51    $debug = Foswiki::Func::getPreferencesFlag( "SPREADSHEETPLUGIN_DEBUG" ) || 0; 
    5852 
    5953    # Flag to skip calc if in include 
    60     $skipInclude = Foswiki::Func::getPreferencesFlag( "SPREADSHEETPLUGIN_SKIPINCLUDE" ); 
     54    $skipInclude = Foswiki::Func::getPreferencesFlag( "SPREADSHEETPLUGIN_SKIPINCLUDE" ) || 1; 
    6155 
    6256    # Plugin correctly initialized 
Note: See TracChangeset for help on using the changeset viewer.