?
avatar Quibi
Quibi
17 Jan 2015

Steps to reproduce the issue

The JBrowser::hasFeature() has been removed from Joomla CMS 3.x. However, this removed function is used in the very JBrowser source code. Specifically, hasFeature() is called at /libraries/joomla/environment/browser.php line 607 (inside function isViewable).

I think that hasFeature() should be removed from JBrowser source code and an alternative algorithm should be used at that point.

To reproduce this error, I wrote this code:

$browser = JBrowser::getInstance(null, "");
$browser->isViewable('foo/nothing');

Expected result

True or False

Actual result

Fatal error: Call to undefined method JBrowser::hasFeature() in /libraries/joomla/environment/browser.php on line 607

System information (as much as possible)

Joomla CMS 3.3 (staging)

Additional comments

If JBrowser::hasFeature is directly call, you get a " Fatal error: Call to undefined method JBrowser::hasFeature()...", such as running:

$browser = JBrowser::getInstance();
$browser->hasFeature('image');
avatar Quibi Quibi - open - 17 Jan 2015
avatar zero-24
zero-24 - comment - 17 Jan 2015

Thanks here is a PR for that :smile: #5791

avatar zero-24 zero-24 - close - 17 Jan 2015
avatar zero-24 zero-24 - change - 17 Jan 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-01-17 12:23:28
Closed_By zero-24
avatar jissues-bot
jissues-bot - comment - 17 Jan 2015

Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/5788

avatar jissues-bot jissues-bot - close - 17 Jan 2015
avatar Quibi
Quibi - comment - 17 Jan 2015

Thanks a lot.

avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment