diff --git a/Admin/Install/Editor.install.json b/Admin/Install/Editor.install.json new file mode 100644 index 0000000..18aab24 --- /dev/null +++ b/Admin/Install/Editor.install.json @@ -0,0 +1,10 @@ +[ + { + "type": "type", + "name": "item_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..c623735 --- /dev/null +++ b/Admin/Install/Editor.php @@ -0,0 +1,43 @@ + __DIR__ . '/Editor.install.json']); + } +} diff --git a/Theme/Backend/item-profile.tpl.php b/Theme/Backend/item-profile.tpl.php index 421c62c..b127bf1 100755 --- a/Theme/Backend/item-profile.tpl.php +++ b/Theme/Backend/item-profile.tpl.php @@ -68,14 +68,12 @@ echo $this->data['nav']->render();
request->uri->fragment === 'c-tab-1' ? ' checked' : ''; ?>>
- + getEditorDocByTypeName('item_backend_warning'))->id !== 0) : ?>
-
- Warning -
+
printHtml($warning->plain); ?>
diff --git a/info.json b/info.json index 55ef05e..9aeef85 100755 --- a/info.json +++ b/info.json @@ -22,6 +22,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"; } }