removed warning about non utf8mb4 charset for mysql/mariadb - #496 (#497)

Signed-off-by: Daniel Opitz <git@copynpaste.de>
This commit is contained in:
Daniel Opitz 2019-04-25 13:04:56 +02:00 коммит произвёл Benjamin Brahmer
Родитель 3b83d8d3cb
Коммит 10c0b1ff10
2 изменённых файлов: 4 добавлений и 23 удалений

Просмотреть файл

@ -13,8 +13,6 @@
namespace OCA\News\Service; namespace OCA\News\Service;
use Doctrine\DBAL\Platforms\MySqlPlatform;
use OCP\IConfig; use OCP\IConfig;
use OCP\IDBConnection; use OCP\IDBConnection;
@ -22,13 +20,13 @@ use OCA\News\Config\Config;
class StatusService class StatusService
{ {
/** @var IConfig */
private $settings; private $settings;
/** @var Config */
private $config; private $config;
/** @var string */
private $appName; private $appName;
/** /** @var IDBConnection */
* @var IDBConnection
*/
private $connection; private $connection;
public function __construct( public function __construct(

Просмотреть файл

@ -23,20 +23,3 @@
</ul> </ul>
</news-instant-notification> </news-instant-notification>
<?php }; ?> <?php }; ?>
<?php if ($_['warnings']['incorrectDbCharset']) { ?>
<news-instant-notification id="cron-warning">
<p><?php p($l->t('Non UTF-8 charset for MySQL/MariaDB database detected!')); ?></p>
<ul>
<li>
<a href="https://docs.nextcloud.com/server/latest/admin_manual/configuration_database/mysql_4byte_support.html"
target="_blank"
rel="noreferrer">
<?php
p($l->t('Learn how to convert your database to utf8mb4 (make a backup beforehand)'));
?>
</a>
</li>
</ul>
</news-instant-notification>
<?php }; ?>