Skip to content

Commit

Permalink
Item402: cleanup
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/FindElsewherePlugin@2089 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
WillNorris authored and WillNorris committed Jan 22, 2009
1 parent 04b2b27 commit 432d279
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion data/System/FindElsewherePlugin.txt
Expand Up @@ -80,7 +80,7 @@ __Compatibility__

---++++ Enabling and disabling the plugin globally

You can enable or disable the <nop>%TOPIC% plugin sitewide (in %USERSWEB%.SitePreferences), per web (in <nop/>WebPreferences) or pr. topic by defining DISABLELOOKELSEWHERE = 1.
You can enable or disable the <nop>%TOPIC% plugin sitewide (in %USERSWEB%.SitePreferences), per web (in <nop/>WebPreferences) or per topic by defining DISABLELOOKELSEWHERE = 1.

---++++ Scope of the plugin - webs to find topics in

Expand Down
12 changes: 5 additions & 7 deletions lib/Foswiki/Plugins/FindElsewherePlugin.pm
@@ -1,4 +1,4 @@
# Copyright (C) 2002 Mike Barton, Marco Carnut, Peter HErnst
# Copyright (C) 2002 Mike Barton, Marco Carnut, Peter Hernst
# (C) 2003 Martin Cleaver, (C) 2004 Matt Wilkie (C) 2007 Crawford Currie
# (C) 2008 Foswiki Contributors
#
Expand Down Expand Up @@ -28,8 +28,8 @@ use vars qw(

$NO_PREFS_IN_TOPIC = 1;

$RELEASE = '$Date: 2007-09-26 04:16:46 +1000 (Wed, 26 Sep 2007) $';
$VERSION = '$Rev: 15055 $';
$VERSION = '$Rev: $Rev$ $';
$RELEASE = 'Foswiki-1.0.1'

sub initPlugin {
#my( $topic, $web, $user, $installWeb ) = @_;
Expand All @@ -40,12 +40,10 @@ sub initPlugin {
return 0;
}

$disabled =
Foswiki::Func::getPreferencesFlag( "DISABLELOOKELSEWHERE" );
$disabled = Foswiki::Func::getPreferencesFlag( "DISABLELOOKELSEWHERE" );
unless( defined( $disabled )) {
# Compatibility, deprecated
$disabled =
Foswiki::Func::getPluginPreferencesFlag( "DISABLELOOKELSEWHERE" );
$disabled = Foswiki::Func::getPluginPreferencesFlag( "DISABLELOOKELSEWHERE" );
}

return !$disabled;
Expand Down

0 comments on commit 432d279

Please sign in to comment.