PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_TreeMenu » Bug #331

Konqueror detection patch is wrong

Details

Submitted2003-11-30 21:05 UTC
Fromjeff at beefstudio dot com
Assignedrichard
StatusClosed
PackageHTML_TreeMenu
PHP Version4.3.3
OSMac OSX.3.1
Roadmaps(Not assigned)

Comments

[2003-11-30 21:05 UTC] jeff at beefstudio dot com

Description:
------------
At the end of TreeMenu.js there is some code to detect Konqueror which breaks the detection for other browsers.

The code is:

// Patch from Harald Fielker
if (agt.indexOf('konqueror')) {
...

which will return -1 for any browser other than konqueror.

Simple fix:

if (agt.indexOf('konqueror') != -1) {
...