From e64e640a31f126daad1dccc97e0161af719231ad Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 31 May 2002 01:52:03 +0000 Subject: [PATCH] Fixed a bug where it was displaying the page url rather than the menu title. --- lib/WebGUI/Macro/S_specificMenuVertical.pm | 2 +- lib/WebGUI/Macro/p_previousMenuHorizontal.pm | 4 ++-- lib/WebGUI/Macro/t_topMenuHorizontal.pm | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/WebGUI/Macro/S_specificMenuVertical.pm b/lib/WebGUI/Macro/S_specificMenuVertical.pm index 88a8bcdb9..d4a64108b 100644 --- a/lib/WebGUI/Macro/S_specificMenuVertical.pm +++ b/lib/WebGUI/Macro/S_specificMenuVertical.pm @@ -24,7 +24,7 @@ sub _replacement { if ($param[1] eq "") { $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 = ''; if (defined $data[0] && WebGUI::Privilege::canViewPage($data[0])) { $temp .= traversePageTree($data[0],1,$param[1]); diff --git a/lib/WebGUI/Macro/p_previousMenuHorizontal.pm b/lib/WebGUI/Macro/p_previousMenuHorizontal.pm index 2a7fa78aa..504edb38f 100644 --- a/lib/WebGUI/Macro/p_previousMenuHorizontal.pm +++ b/lib/WebGUI/Macro/p_previousMenuHorizontal.pm @@ -38,9 +38,9 @@ sub _replacement { } $temp .= ''; if ($session{page}{pageId} == $data[2]) { - $temp .= ''.$data[1].''; + $temp .= ''.$data[0].''; } else { - $temp .= $data[1]; + $temp .= $data[0]; } $temp .= ''; } diff --git a/lib/WebGUI/Macro/t_topMenuHorizontal.pm b/lib/WebGUI/Macro/t_topMenuHorizontal.pm index 8f76595ef..fc764cbb4 100644 --- a/lib/WebGUI/Macro/t_topMenuHorizontal.pm +++ b/lib/WebGUI/Macro/t_topMenuHorizontal.pm @@ -37,9 +37,9 @@ sub _replacement { } $temp .= ''; if ($session{page}{pageId} == $data[2]) { - $temp .= ''.$data[1].''; + $temp .= ''.$data[0].''; } else { - $temp .= $data[1]; + $temp .= $data[0]; } $temp .= ''; }