Skip to content

Commit

Permalink
Item2403: Improve SubscribePlugin support
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/NatSkinPlugin@5604 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Nov 24, 2009
1 parent 534e332 commit 261a8d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/System/NatSkinPlugin.txt
Expand Up @@ -229,6 +229,7 @@ See NatSkin#Installation_Instructions
| Release: | %$RELEASE% |
| Version: | %$VERSION% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 24 Nov 2009: | improve !SubscribePlugin support |
| 17 Nov 2009: | added support for !SolrPlugin; fixed email obfuscator; \
switching sidebar-context off if sidebar tempalte is empty (works only for =view=) |
| 14 Sep 2009: | removed GETSKINSTYLE in favour of using ADDTOHEAD; \
Expand Down
3 changes: 2 additions & 1 deletion lib/Foswiki/Plugins/NatSkinPlugin.pm
Expand Up @@ -1166,7 +1166,8 @@ sub renderUserActions {
}

# subscribe
if ($text =~ /\$subscribe\b/) {
if (($text =~ /\$subscribe\b/ ) &&
(Foswiki::Func::getContext()->{SubscribePluginEnabled})) {
if ($isRestrictedAction{'subscribe'}) {
$subscribeString = Foswiki::Func::expandTemplate('SUBSCRIBE_ACTION_RESTRICTED');
} else {
Expand Down

0 comments on commit 261a8d7

Please sign in to comment.