Hi,
Originally Posted by
DrByte
"correctly reading"? Can you explain what you mean?
Actually, what I've said is wrong.. the problem isn't that the links aren't using zen_href_link, it's that a "feature" of zen_href_link() is that it can't cope with URIs that are static but don't have parameters.
In the modules/ezpages_bar_header.php file code like the following is used:
PHP Code:
zen_href_link($page_query->fields['alt_url'], '', ($page_query->fields['page_is_ssl']=='0' ? 'NONSSL' : 'SSL'), true, true, true)
For this to work properly the zen_href_link() function requires that a parameter list is supplied, in which case the URI has a "first" parameter with a question mark prepended. The session ID is always appended using an ampersand because of the code:
PHP Code:
$separator = '&';
In Ceon URI Mapping I made it so that no such thing could happen. Sorry, should have also got in touch to have this "feature" fixed for Zen Cart itself. Code from Ceon URI Mapping which can be an easy basis for making the same changes to the zen_href_link function:
PHP Code:
if (strlen($parameters) > 0) {
// Must add the parameters to the link
$link .= '?';
while (substr($parameters, 0, 1) == '?' || substr($parameters, 0, 1) == '&') {
$parameters = substr($parameters, 1, strlen($parameters) - 1);
}
$link .= zen_output_string($parameters);
$separator = '&';
} else {
$separator = '?';
}
Hope that helps!
All the best...
Conor
ceon
Bookmarks