Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKate Butler <kate@innocraft.com>2019-10-21 04:41:59 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2019-10-21 04:41:59 +0300
commit17784688d291e9c9fef33f6acd4f5883f0d2069b (patch)
treecaa9645ba9a3c0ea0a58653542b02e91520b4679 /plugins/Widgetize
parent3c6e23b18ade4124896728f42e0ad8c2c63e2706 (diff)
Don't permit CoreHome to be widgetized (#15025)
Diffstat (limited to 'plugins/Widgetize')
-rw-r--r--plugins/Widgetize/Controller.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/Widgetize/Controller.php b/plugins/Widgetize/Controller.php
index 8376557231..8481f0a609 100644
--- a/plugins/Widgetize/Controller.php
+++ b/plugins/Widgetize/Controller.php
@@ -40,6 +40,14 @@ class Controller extends \Piwik\Plugin\Controller
throw new \Exception("Please set 'moduleToWidgetize' to a valid value.");
}
+ if ($controllerName == 'CoreHome' && $actionName == 'index') {
+ $message = 'CoreHome cannot be widgetized. ' .
+ 'You can enable it to be embedded directly into an iframe (passing module=CoreHme instead of module=Widgetize) ' .
+ 'instead by enabling the \'enable_framed_pages\' setting in your config. ' .
+ 'See https://matomo.org/faq/how-to/faq_193/ for more info.';
+ throw new \Exception($message);
+ }
+
$shouldEmbedEmpty = false;
/**