More keyword page clean-up
This commit is contained in:
parent
d085d7d04a
commit
5ee5c910d8
1 changed files with 0 additions and 18 deletions
|
|
@ -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
|
=head2 preparePageTemplate
|
||||||
|
|
||||||
This is essentially prepareView, but is smart and will only do the template
|
This is essentially prepareView, but is smart and will only do the template
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue