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');
True or False
Fatal error: Call to undefined method JBrowser::hasFeature() in /libraries/joomla/environment/browser.php on line 607
Joomla CMS 3.3 (staging)
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');
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-01-17 12:23:28 |
Closed_By | ⇒ | zero-24 |
Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/5788
Thanks a lot.
Labels |
Added:
?
|
Thanks here is a PR for that #5791