diff --git a/mod/admin.php b/mod/admin.php index c5ad7de3b..67b8ed29f 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -431,10 +431,10 @@ function admin_page_summary(&$a) { // are there MyISAM tables in the DB? If so, trigger a warning message $r = q("SELECT `engine` FROM `information_schema`.`tables` WHERE `engine`='myisam' LIMIT 1"); $showwarning = false; - $warningtext = ""; + $warningtext = array(); if (dbm::is_result($r)) { $showwarning = true; - $warningtext = sprintf(t('Your DB still runs with MyISAM tables. You should change the engine type to InnoDB. As Friendica will use InnoDB only features in the future, you should change this! See here for a guide that may be helpful converting the table engines. You may also use the convert_innodb.sql in the /util directory of your Friendica installation.
'), 'https://dev.mysql.com/doc/refman/5.7/en/converting-tables-to-innodb.html'); + $warningtext[] = sprintf(t('Your DB still runs with MyISAM tables. You should change the engine type to InnoDB. As Friendica will use InnoDB only features in the future, you should change this! See here for a guide that may be helpful converting the table engines. You may also use the convert_innodb.sql in the /util directory of your Friendica installation.
'), 'https://dev.mysql.com/doc/refman/5.7/en/converting-tables-to-innodb.html'); } $r = q("SELECT `page-flags`, COUNT(`uid`) AS `count` FROM `user` GROUP BY `page-flags`"); $accounts = array( diff --git a/view/templates/admin_summary.tpl b/view/templates/admin_summary.tpl index 34df0db51..c8e8af229 100644 --- a/view/templates/admin_summary.tpl +++ b/view/templates/admin_summary.tpl @@ -3,7 +3,9 @@

{{$title}} - {{$page}}

{{if $showwarning}}
-

{{$warningtext}}

+ {{foreach $warningtext as $wt}} +

{{$wt}}

+ {{/foreach}}
{{/if}}