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:
authorStefan Giehl <stefan@matomo.org>2020-05-17 23:39:32 +0300
committerGitHub <noreply@github.com>2020-05-17 23:39:32 +0300
commitb6ace0e06c2ef3f8f98ac55feb934ebe0d304107 (patch)
treef257e7b38af89a61c4e15e8aef2a854882676570 /plugins/Dashboard/Dashboard.php
parentd89c2b7fb4b295542204cd5d81c35f79b5c93489 (diff)
Use utf8mb4 character set if possible (#15618)
Diffstat (limited to 'plugins/Dashboard/Dashboard.php')
-rw-r--r--plugins/Dashboard/Dashboard.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/Dashboard/Dashboard.php b/plugins/Dashboard/Dashboard.php
index 8eeec660c6..652bad1b4f 100644
--- a/plugins/Dashboard/Dashboard.php
+++ b/plugins/Dashboard/Dashboard.php
@@ -32,10 +32,21 @@ class Dashboard extends \Piwik\Plugin
'Translate.getClientSideTranslationKeys' => 'getClientSideTranslationKeys',
'Widget.addWidgetConfigs' => 'addWidgetConfigs',
'Category.addSubcategories' => 'addSubcategories',
- 'Widgetize.shouldEmbedIframeEmpty' => 'shouldEmbedIframeEmpty'
+ 'Widgetize.shouldEmbedIframeEmpty' => 'shouldEmbedIframeEmpty',
+ 'Db.getTablesInstalled' => 'getTablesInstalled'
);
}
+ /**
+ * Register the new tables, so Matomo knows about them.
+ *
+ * @param array $allTablesInstalled
+ */
+ public function getTablesInstalled(&$allTablesInstalled)
+ {
+ $allTablesInstalled[] = Common::prefixTable('user_dashboard');
+ }
+
public function shouldEmbedIframeEmpty(&$shouldEmbedEmpty, $controllerName, $actionName)
{
if ($controllerName == 'Dashboard' && $actionName == 'index') {