Skip to content

Commit

Permalink
Item9961: Thanks George, for reminding me of isTrue()...
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/SemanticLinksPlugin@10494 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Jan 7, 2011
1 parent ae47f66 commit 1108bbe
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions lib/Foswiki/Plugins/SemanticLinksPlugin.pm
Expand Up @@ -42,19 +42,8 @@ sub initPlugin {

return $warning;
}

# No getPreferencesFlag() because I couldn't provide a positive default
$renderingEnabled =
Foswiki::Func::getPreferencesValue('SEMANTICLINKSPLUGIN_RENDERING');
if ( not defined $renderingEnabled
or $renderingEnabled eq 'on'
or $renderingEnabled eq 1 )
{
$renderingEnabled = 1;
}
else {
$renderingEnabled = 0;
}
$renderingEnabled = Foswiki::Func::isTrue(
Foswiki::Func::getPreferencesValue('SEMANTICLINKSPLUGIN_RENDERING'), 1);
require Foswiki::Plugins::SemanticLinksPlugin::Core;
Foswiki::Plugins::SemanticLinksPlugin::Core::init();

Expand Down

0 comments on commit 1108bbe

Please sign in to comment.