Skip to content

Commit

Permalink
Item13125: fixed call to CGI::param()
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Dec 16, 2014
1 parent 9b5b694 commit ac6ca2a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Foswiki/Plugins/RenderPlugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ use Foswiki::Func ();
use Foswiki::Sandbox() ;
use Encode ();

our $VERSION = '3.22';
our $RELEASE = '3.22';
our $VERSION = '3.21';
our $RELEASE = '3.21';
our $SHORTDESCRIPTION = 'Render <nop>WikiApplications asynchronously';
our $NO_PREFS_IN_TOPIC = 1;

Expand Down Expand Up @@ -144,7 +144,7 @@ sub restTemplate {
# and render it
my $result = Foswiki::Func::expandCommonVariables($tmpl, $topic, $web) || ' ';

my $theRender = Foswiki::Func::isTrue($query->param('render'), 0);
my $theRender = Foswiki::Func::isTrue(scalar $query->param('render'), 0);
if ($theRender) {
$result = Foswiki::Func::renderText($result, $web);
}
Expand Down

0 comments on commit ac6ca2a

Please sign in to comment.