Fixed a bug where it was displaying the page url rather than the menu title.
This commit is contained in:
parent
993ff5bbc4
commit
e64e640a31
3 changed files with 5 additions and 5 deletions
|
|
@ -24,7 +24,7 @@ sub _replacement {
|
||||||
if ($param[1] eq "") {
|
if ($param[1] eq "") {
|
||||||
$param[1] = 0;
|
$param[1] = 0;
|
||||||
}
|
}
|
||||||
@data = WebGUI::SQL->quickArray("select pageId,title,urlizedTitle from page where urlizedTitle='$param[0]'");
|
@data = WebGUI::SQL->quickArray("select pageId from page where urlizedTitle='$param[0]'");
|
||||||
$temp = '<span class="verticalMenu">';
|
$temp = '<span class="verticalMenu">';
|
||||||
if (defined $data[0] && WebGUI::Privilege::canViewPage($data[0])) {
|
if (defined $data[0] && WebGUI::Privilege::canViewPage($data[0])) {
|
||||||
$temp .= traversePageTree($data[0],1,$param[1]);
|
$temp .= traversePageTree($data[0],1,$param[1]);
|
||||||
|
|
|
||||||
|
|
@ -38,9 +38,9 @@ sub _replacement {
|
||||||
}
|
}
|
||||||
$temp .= '<a class="horizontalMenu" href="'.WebGUI::URL::gateway($data[1]).'">';
|
$temp .= '<a class="horizontalMenu" href="'.WebGUI::URL::gateway($data[1]).'">';
|
||||||
if ($session{page}{pageId} == $data[2]) {
|
if ($session{page}{pageId} == $data[2]) {
|
||||||
$temp .= '<span class="selectedMenuItem">'.$data[1].'</span>';
|
$temp .= '<span class="selectedMenuItem">'.$data[0].'</span>';
|
||||||
} else {
|
} else {
|
||||||
$temp .= $data[1];
|
$temp .= $data[0];
|
||||||
}
|
}
|
||||||
$temp .= '</a>';
|
$temp .= '</a>';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,9 +37,9 @@ sub _replacement {
|
||||||
}
|
}
|
||||||
$temp .= '<a class="horizontalMenu" href="'.WebGUI::URL::gateway($data[1]).'">';
|
$temp .= '<a class="horizontalMenu" href="'.WebGUI::URL::gateway($data[1]).'">';
|
||||||
if ($session{page}{pageId} == $data[2]) {
|
if ($session{page}{pageId} == $data[2]) {
|
||||||
$temp .= '<span class="selectedMenuItem">'.$data[1].'</span>';
|
$temp .= '<span class="selectedMenuItem">'.$data[0].'</span>';
|
||||||
} else {
|
} else {
|
||||||
$temp .= $data[1];
|
$temp .= $data[0];
|
||||||
}
|
}
|
||||||
$temp .= '</a>';
|
$temp .= '</a>';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue