Author: kake Date: 2007-06-11 04:24:22 +0100 (Mon, 11 Jun 2007) New Revision: 1067
Modified: trunk/lib/OpenGuides.pm Log: Make sure all TT vars are returned if return_tt_vars is passed to OpenGuides->display_node
Modified: trunk/lib/OpenGuides.pm =================================================================== --- trunk/lib/OpenGuides.pm 2007-06-11 03:06:21 UTC (rev 1066) +++ trunk/lib/OpenGuides.pm 2007-06-11 03:24:22 UTC (rev 1067) @@ -274,8 +274,8 @@ if ( $redirect ) { # Don't redirect if the parameter "redirect" is given as 0. if ($do_redirect == 0) { + $tt_vars{current} = 1; return %tt_vars if $args{return_tt_vars}; - $tt_vars{current} = 1; my $output = $self->process_template( id => $id, template => "node.tt",