diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-07-31 00:28:22 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-07-31 00:28:22 +0300 |
commit | a8aecb89c79a329fdd577bc54115a4d7ba464e1d (patch) | |
tree | 1cf9d7216c0c9007018bfad1f98fd54dcde957aa /plugins/Widgetize | |
parent | 77e879bc4d86f9e8584415f575040a89f872edd6 (diff) |
fix optUserOut cookie expires after session (#14674)
* optUserOut cookie expires after session
* tweak to widgetize
Diffstat (limited to 'plugins/Widgetize')
-rw-r--r-- | plugins/Widgetize/Controller.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Widgetize/Controller.php b/plugins/Widgetize/Controller.php index ceb40c1764..8376557231 100644 --- a/plugins/Widgetize/Controller.php +++ b/plugins/Widgetize/Controller.php @@ -36,6 +36,10 @@ class Controller extends \Piwik\Plugin\Controller throw new \Exception("Widgetizing API requests is not supported for security reasons. Please change query parameter 'moduleToWidgetize'."); } + if ($controllerName == 'Widgetize') { + throw new \Exception("Please set 'moduleToWidgetize' to a valid value."); + } + $shouldEmbedEmpty = false; /** |