diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index 0d6b03e78..51f2f5384 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -46,7 +46,7 @@ sub addChild { my $properties = shift; my @other = @_; if ($properties->{className} ne "WebGUI::Asset::Post") { - $self->session->errorHandler->security("tried to add a ".$properties->{className}." to a ".$self->get("className")); + $self->session->errorHandler->security("add a ".$properties->{className}." to a ".$self->get("className")); return undef; } return $self->SUPER::addChild($properties, @other); diff --git a/lib/WebGUI/Asset/Wobject/Collaboration.pm b/lib/WebGUI/Asset/Wobject/Collaboration.pm index 125776731..77f6402fd 100644 --- a/lib/WebGUI/Asset/Wobject/Collaboration.pm +++ b/lib/WebGUI/Asset/Wobject/Collaboration.pm @@ -30,7 +30,7 @@ sub addChild { my $properties = shift; my @other = @_; if ($properties->{className} ne "WebGUI::Asset::Post::Thread") { - $self->session->errorHandler->security("tried to add a ".$properties->{className}." to a ".$self->get("className")); + $self->session->errorHandler->security("add a ".$properties->{className}." to a ".$self->get("className")); return undef; } return $self->SUPER::addChild($properties, @other);