fixed article

This commit is contained in:
JT Smith 2004-05-31 17:52:56 +00:00
parent 8e79f008c7
commit 9449f5af0b
3 changed files with 6 additions and 6 deletions

View file

@ -105,7 +105,7 @@ sub _levels {
my $p = WebGUI::Page->getPage;
my @ancestors = reverse $p->ancestors;
if(scalar(@ancestors) == 1) { # I am WebGUI root. I have one ancestor, which
return $p # is nameless root. Return myself
return $p; # is nameless root. Return myself
} elsif(scalar(@ancestors) > 1) { # I am a page under WebGUI root.
return $ancestors[1]; # 1st element of ancestors is WebGUI root
} else {