Skip to content

Commit

Permalink
Item13897: Fixed a problem with disapperaring $SERVER.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Oct 7, 2016
1 parent ff3d6d5 commit 180b495
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion JsonRpcContrib/lib/Foswiki/Contrib/JsonRpcContrib.pm
Expand Up @@ -53,7 +53,9 @@ sub DEMOLISH {
}

sub registerMethod {
$Foswiki::app->create(__PACKAGE__) unless $SERVER;
$Foswiki::app->heap->{JsonRpcContrib}{object} =
$Foswiki::app->create(__PACKAGE__)
unless $SERVER;
$SERVER->registerMethod(@_);
}

Expand Down

0 comments on commit 180b495

Please sign in to comment.