summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.php2
-rw-r--r--templates/part.content.warnings.php (renamed from templates/part.content.cronwarning.php)19
2 files changed, 19 insertions, 2 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index 873c71bdc..844588c4f 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -1,4 +1,4 @@
-<?php print_unescaped($this->inc('part.content.cronwarning')) ?>
+<?php print_unescaped($this->inc('part.content.warnings')) ?>
<div news-auto-focus="#app-content"
id="articles"
diff --git a/templates/part.content.cronwarning.php b/templates/part.content.warnings.php
index 62052b331..e4ac09652 100644
--- a/templates/part.content.cronwarning.php
+++ b/templates/part.content.warnings.php
@@ -1,4 +1,4 @@
-<?php if ($_['cronWarning']) { ?>
+<?php if ($_['warnings']['improperlyConfiguredCron']) { ?>
<news-instant-notification id="cron-warning">
<p><?php p($l->t('Ajax or Web cron mode detected! Your feeds will not be updated!')); ?></p>
<ul>
@@ -23,3 +23,20 @@
</ul>
</news-instant-notification>
<?php }; ?>
+
+<?php if ($_['warnings']['incorrectDbCharset']) { ?>
+ <news-instant-notification id="cron-warning">
+ <p><?php p($l->t('Incorrect MySql/MariaDb database charset detected!')); ?></p>
+ <ul>
+ <li>
+ <a href="https://dba.stackexchange.com/a/21684"
+ target="_blank"
+ rel="noreferrer">
+ <?php
+ p($l->t('Learn on how to convert your database to utf8mb4'));
+ ?>
+ </a>
+ </li>
+ </ul>
+ </news-instant-notification>
+<?php }; ?> \ No newline at end of file