diff options
Diffstat (limited to 'plugins/Marketplace/Controller.php')
-rw-r--r-- | plugins/Marketplace/Controller.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Marketplace/Controller.php b/plugins/Marketplace/Controller.php index 418c39dc42..679ff77cf7 100644 --- a/plugins/Marketplace/Controller.php +++ b/plugins/Marketplace/Controller.php @@ -303,6 +303,9 @@ class Controller extends \Piwik\Plugin\ControllerAdmin $notification = new Notification($e->getMessage()); $notification->context = Notification::CONTEXT_ERROR; + if (method_exists($e, 'isHtmlMessage') && $e->isHtmlMessage()) { + $notification->raw = true; + } Notification\Manager::notify('Marketplace_Install' . $pluginName, $notification); $hasErrors = true; @@ -404,6 +407,9 @@ class Controller extends \Piwik\Plugin\ControllerAdmin $notification->context = Notification::CONTEXT_ERROR; $notification->type = Notification::TYPE_PERSISTENT; $notification->flags = Notification::FLAG_CLEAR; + if (method_exists($e, 'isHtmlMessage') && $e->isHtmlMessage()) { + $notification->raw = true; + } Notification\Manager::notify('CorePluginsAdmin_InstallPlugin', $notification); Url::redirectToReferrer(); |