Header Links not working

Displays Instance keys for TBC

Moderator: titan99

Header Links not working

Postby nightfighter » Sat Apr 14, 2007 4:05 am

The header links are not working. They seem to not put the proper URL together:

In function:

Code: Select all
function tableHeaderRow($th)


You have a line that says:

Code: Select all
         $header = '<a href="' . $itemlink[$row['clientLocale']] . urlencode(utf8_decode(stripslashes($iname))) . '" target="_blank">' . $inst_name[$header] . '</a>';


But the function does not have a global for $row and when you look where this function is called, the $row variable has not been set to anything by the time it gets here.

Change the code to:
Code: Select all
         $header = '<a href="' . $itemlink[$roster_conf['roster_lang']] . urlencode(utf8_decode(stripslashes($iname))) . '" target="_blank">' . $inst_name[$header] . '</a>';


and the link is done correctly.
User avatar
nightfighter
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 169
Joined: Wed Jul 05, 2006 11:25 pm
Location: Boise, Idaho, USA

Return to Key BC

Who is online

Users browsing this forum: No registered users and 0 guests

cron