More keyword page clean-up

This commit is contained in:
Colin Kuskie 2010-04-21 17:11:26 -07:00
parent d085d7d04a
commit 5ee5c910d8

View file

@ -363,24 +363,6 @@ sub isProtected {
#-------------------------------------------------------------------
=head2 isKeywordPage
Returns a boolean indicating whether or not the name of this WikiPage matches any keyword in the Wiki that
contains it.
=cut
sub isKeywordPage {
my $self = shift;
my $keywords = WebGUI::Keyword->new($self->session)->getMatchingAssets({
asset => $self->getWiki,
keyword => $self->get('title'),
});
return scalar @{ $keywords };
}
#-------------------------------------------------------------------
=head2 preparePageTemplate
This is essentially prepareView, but is smart and will only do the template