diff --git a/lib/WebGUI/Macro/Shared.pm b/lib/WebGUI/Macro/Shared.pm index 4aa1c80b1..1a149ae0a 100644 --- a/lib/WebGUI/Macro/Shared.pm +++ b/lib/WebGUI/Macro/Shared.pm @@ -40,8 +40,13 @@ sub traversePageTree { $sth = WebGUI::SQL->read("select urlizedTitle, menuTitle, pageId from page where parentId='$_[0]' order by sequenceNumber"); while (@data = $sth->array) { if (WebGUI::Privilege::canViewPage($data[2])) { - $output .= $depth.''.$data[1].'
'; + $output .= $depth.''; + if ($session{page}{pageId} == $data[2]) { + $output .= ''.$data[1].''; + } else { + $output .= $data[1]; + } + $output .= '
'; $output .= traversePageTree($data[2],$_[1]+1,$toLevel); } } diff --git a/lib/WebGUI/Macro/p_previousMenuHorizontal.pm b/lib/WebGUI/Macro/p_previousMenuHorizontal.pm index f248034cf..2a7fa78aa 100644 --- a/lib/WebGUI/Macro/p_previousMenuHorizontal.pm +++ b/lib/WebGUI/Macro/p_previousMenuHorizontal.pm @@ -36,7 +36,13 @@ sub _replacement { } else { $temp .= $delimeter; } - $temp .= ''.$data[0].''; + $temp .= ''; + if ($session{page}{pageId} == $data[2]) { + $temp .= ''.$data[1].''; + } else { + $temp .= $data[1]; + } + $temp .= ''; } } $sth->finish; diff --git a/lib/WebGUI/Macro/s_specificMenuHorizontal.pm b/lib/WebGUI/Macro/s_specificMenuHorizontal.pm index 50b8562ce..54a566ff4 100644 --- a/lib/WebGUI/Macro/s_specificMenuHorizontal.pm +++ b/lib/WebGUI/Macro/s_specificMenuHorizontal.pm @@ -38,8 +38,13 @@ sub _replacement { } else { $temp .= $delimeter; } - $temp .= ''. - $data[0].''; + $temp .= ''; + if ($session{page}{pageId} == $data[2]) { + $temp .= ''.$data[1].''; + } else { + $temp .= $data[1]; + } + $temp .= ''; } } $sth->finish; diff --git a/lib/WebGUI/Macro/t_topMenuHorizontal.pm b/lib/WebGUI/Macro/t_topMenuHorizontal.pm index abb90c2db..8f76595ef 100644 --- a/lib/WebGUI/Macro/t_topMenuHorizontal.pm +++ b/lib/WebGUI/Macro/t_topMenuHorizontal.pm @@ -35,8 +35,13 @@ sub _replacement { } else { $temp .= $delimeter; } - $temp .= ''.$data[0].''; + $temp .= ''; + if ($session{page}{pageId} == $data[2]) { + $temp .= ''.$data[1].''; + } else { + $temp .= $data[1]; + } + $temp .= ''; } } $sth->finish;