diff --git a/Admin/Install/Editor.install.json b/Admin/Install/Editor.install.json
new file mode 100644
index 0000000..e692961
--- /dev/null
+++ b/Admin/Install/Editor.install.json
@@ -0,0 +1,10 @@
+[
+ {
+ "type": "type",
+ "name": "client_backend_warning",
+ "l11n": {
+ "en": "Backend warning",
+ "de": "Backend Warnung"
+ }
+ }
+]
\ No newline at end of file
diff --git a/Admin/Install/Editor.php b/Admin/Install/Editor.php
new file mode 100644
index 0000000..509018b
--- /dev/null
+++ b/Admin/Install/Editor.php
@@ -0,0 +1,43 @@
+ __DIR__ . '/Editor.install.json']);
+ }
+}
diff --git a/Theme/Backend/client-profile.tpl.php b/Theme/Backend/client-profile.tpl.php
index 5f732dd..f03f039 100755
--- a/Theme/Backend/client-profile.tpl.php
+++ b/Theme/Backend/client-profile.tpl.php
@@ -171,14 +171,12 @@ echo $this->data['nav']->render();
-
+ getEditorDocByTypeName('client_backend_warning'))->id !== 0) : ?>
-
- Warning
-
+ = $this->printHtml($warning->plain); ?>
diff --git a/info.json b/info.json
index 7312228..2dcf417 100755
--- a/info.json
+++ b/info.json
@@ -24,6 +24,7 @@
},
"providing": {
"Navigation": "*",
+ "Editor": "*",
"Media": "*"
},
"load": [
diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php
index b5d36a8..4d624b6 100755
--- a/tests/Bootstrap.php
+++ b/tests/Bootstrap.php
@@ -302,7 +302,7 @@ if (\defined('RESET') && RESET === '1') {
$db->exec('DROP DATABASE IF EXISTS ' . $CONFIG['db']['core']['masters']['admin']['database']);
$db->exec('CREATE DATABASE IF NOT EXISTS ' . $CONFIG['db']['core']['masters']['admin']['database']);
$db = null;
- } catch (\Throwable $t) {
+ } catch (\Throwable $_) {
echo "\nCouldn't connect to MYSQL DB\n";
}
}
@@ -317,7 +317,7 @@ if (\defined('RESET') && RESET === '1') {
$db->exec('DROP DATABASE IF EXISTS ' . $CONFIG['db']['core']['postgresql']['admin']['database']);
$db->exec('CREATE DATABASE ' . $CONFIG['db']['core']['postgresql']['admin']['database']);
$db = null;
- } catch (\Throwable $t) {
+ } catch (\Throwable $_) {
echo "\nCouldn't connect to POSTGRESQL DB\n";
}
}
@@ -332,7 +332,7 @@ if (\defined('RESET') && RESET === '1') {
$db->exec('DROP DATABASE IF EXISTS ' . $CONFIG['db']['core']['mssql']['admin']['database']);
$db->exec('CREATE DATABASE ' . $CONFIG['db']['core']['mssql']['admin']['database']);
$db = null;
- } catch (\Throwable $t) {
+ } catch (\Throwable $_) {
echo "\nCouldn't connect to MSSQL DB\n";
}
}