summaryrefslogtreecommitdiffstats
path: root/modules-available/webinterface/hooks/main-warning.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/webinterface/hooks/main-warning.inc.php')
-rw-r--r--modules-available/webinterface/hooks/main-warning.inc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules-available/webinterface/hooks/main-warning.inc.php b/modules-available/webinterface/hooks/main-warning.inc.php
new file mode 100644
index 00000000..88abc002
--- /dev/null
+++ b/modules-available/webinterface/hooks/main-warning.inc.php
@@ -0,0 +1,8 @@
+<?php
+
+if (Property::get(WebInterface::PROP_TYPE) === 'acme') {
+ $err = Acme::getLastError();
+ if (!empty($err)) {
+ Message::addError('webinterface.mw-acme-errors', true);
+ }
+} \ No newline at end of file