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

Improve message in plugin admin if a plugin is not found in filesystem #11629

Merged
merged 2 commits into from May 8, 2017

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Apr 19, 2017

Currently if a plugin does not exist on the filesystem the plugin shows "Plugin not compatible with Piwik X".
As mentioned in matomo-org/plugin-MarketingCampaignsReporting#10 (comment) this might be a bit missleading if the plugin is simply missing on filesystem.

With this PR plugin that are not found will have this message:

image

@sgiehl sgiehl added c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Needs Review PRs that need a code review labels Apr 19, 2017
@sgiehl sgiehl added this to the 3.0.4 milestone Apr 19, 2017
. $this->translator->translate('CorePluginsAdmin_PluginNotCompatibleWith', array($pluginName, self::getPiwikVersion()))
. '</strong><br/>'
. $suffix;
if (is_dir(PIWIK_INCLUDE_PATH . '/plugins/' . $pluginName)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we'd have a method for this in plugin manager but LGTM

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually there is already a method in plugin manager. So will change it to use that one instead.

@sgiehl sgiehl merged commit 9d3d044 into 3.x-dev May 8, 2017
@sgiehl sgiehl deleted the pluginnotfound branch May 8, 2017 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants