Skip to content

Commit

Permalink
removed warning about non utf8mb4 charset for mysql/mariadb - #496 (#497
Browse files Browse the repository at this point in the history
)

Signed-off-by: Daniel Opitz <git@copynpaste.de>
  • Loading branch information
danopz authored and Grotax committed Apr 25, 2019
1 parent 3b83d8d commit 10c0b1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
10 changes: 4 additions & 6 deletions lib/Service/StatusService.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@

namespace OCA\News\Service;

use Doctrine\DBAL\Platforms\MySqlPlatform;

use OCP\IConfig;
use OCP\IDBConnection;

use OCA\News\Config\Config;

class StatusService
{

/** @var IConfig */
private $settings;
/** @var Config */
private $config;
/** @var string */
private $appName;
/**
* @var IDBConnection
*/
/** @var IDBConnection */
private $connection;

public function __construct(
Expand Down
17 changes: 0 additions & 17 deletions templates/part.content.warnings.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,3 @@
</ul>
</news-instant-notification>
<?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 }; ?>

0 comments on commit 10c0b1f

Please sign in to comment.