Update of /cvsroot/openinteract/OpenInteract2/pkg/comments/OpenInteract2/Action
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17420/OpenInteract2/Action
Modified Files:
Comments.pm
Log Message:
don't add an error to the action, just add to params (it's just a box)
Index: Comments.pm
===================================================================
RCS file: /cvsroot/openinteract/OpenInteract2/pkg/comments/OpenInteract2/Action/Comments.pm,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** Comments.pm 4 Mar 2005 15:22:10 -0000 1.15
--- Comments.pm 24 Sep 2005 14:01:40 -0000 1.16
***************
*** 467,470 ****
--- 467,472 ----
}
+ $comment->{poster_host} = $request->remote_host;
+
# Non-object form widgets
***************
*** 846,856 ****
};
if ( $@ ) {
! $self->add_error_key( 'comments.error.cannot_fetch_recent', "$@" );
}
else {
$params{comments} = $comments;
}
! return $self->generate_content(
! \%params, { name => 'comments::box_comment_recent' } );
}
--- 848,858 ----
};
if ( $@ ) {
! $params{error} = $self->_msg(
! 'comments.error.cannot_fetch_recent', "$@" );
}
else {
$params{comments} = $comments;
}
! return $self->generate_content( \%params );
}
|