summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics_reporting/hooks
diff options
context:
space:
mode:
authorSimon Rettberg2017-02-08 12:13:57 +0100
committerSimon Rettberg2017-02-08 12:13:57 +0100
commit5a6575b1c07997ba1af20952f435290ce8ce970c (patch)
tree0c98a876934bb3dbed01549bb814a1c480b5750e /modules-available/statistics_reporting/hooks
parent[statistics_reporting] Fix location highlighting (do it server side) (diff)
downloadslx-admin-5a6575b1c07997ba1af20952f435290ce8ce970c.tar.gz
slx-admin-5a6575b1c07997ba1af20952f435290ce8ce970c.tar.xz
slx-admin-5a6575b1c07997ba1af20952f435290ce8ce970c.zip
[statistics_reporting] Nag user if statistics reporting is disabled
Diffstat (limited to 'modules-available/statistics_reporting/hooks')
-rw-r--r--modules-available/statistics_reporting/hooks/main-warning.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules-available/statistics_reporting/hooks/main-warning.inc.php b/modules-available/statistics_reporting/hooks/main-warning.inc.php
new file mode 100644
index 00000000..33381c9f
--- /dev/null
+++ b/modules-available/statistics_reporting/hooks/main-warning.inc.php
@@ -0,0 +1,5 @@
+<?php
+
+if (!RemoteReport::isReportingEnabled()) {
+ Message::addInfo('statistics_reporting.remote-report-disabled', true);
+}