fixed article
This commit is contained in:
parent
8e79f008c7
commit
9449f5af0b
3 changed files with 6 additions and 6 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue