Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item12233: Disable Subscribe links if static
git-svn-id: http://svn.foswiki.org/trunk@15997 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Nov 12, 2012
1 parent f1075a5 commit a4dbc93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SubscribePlugin/lib/Foswiki/Plugins/SubscribePlugin.pm
Expand Up @@ -38,6 +38,10 @@ sub initPlugin {
unless ( $WEB =~ qr/^($activeWebs)$/ );
}

# No subscribe links for pages rendered for static applications (PDF)
Foswiki::Func::getContext()->{'SubscribePluginAllowed'} = 0
if ( Foswiki::Func::getContext()->{'static'} );

Foswiki::Func::registerTagHandler( 'SUBSCRIBE', \&_SUBSCRIBE );
$UID = 1;

Expand Down

0 comments on commit a4dbc93

Please sign in to comment.