Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JComponentHelper::isEnabled returns true if the component doesn't exist #196

Closed
wants to merge 3 commits into from
Closed

Conversation

florianv
Copy link

You can see the issue here :

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=28393

JComponentHelper::isEnabled('com_anycomponent') will aways return true if the component doesn't exists because in getComponent($option, $strict = false), $result->enabled was set to true for the default $strict = false value. (logic inversion).

@florianv
Copy link
Author

2 ° commit) I think the $strict param complicates things for nothing, and is never used in any "core extension" call.
Moreover, I don't get why the OR is there, because it's independent from the frontend/backend.

@florianv florianv closed this Jun 20, 2012
beat added a commit to beat/joomla-cms that referenced this pull request Sep 10, 2013
wilsonge pushed a commit that referenced this pull request Jan 23, 2017
Tabs ul - removes horiz padding
wilsonge pushed a commit to wilsonge/joomla-cms that referenced this pull request May 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant