diff --git a/modules/core/templates/frontpage_config.tpl.php b/modules/core/templates/frontpage_config.tpl.php index 8b7eed1c345f293c95b247671c55d2a7d82926b9..3e04ce392c87899838794f6b05a16d33401e7089 100644 --- a/modules/core/templates/frontpage_config.tpl.php +++ b/modules/core/templates/frontpage_config.tpl.php @@ -87,8 +87,8 @@ if ($this->data['isadmin']) { foreach ($this->data['funcmatrix'] AS $func) { - echo '<tr class="' . ($func['enabled'] ? 'enabled' : 'disabled') . '"><td>' . ($func['enabled'] ? $icon_enabled : $icon_disabled) . '</td> - <td>' . $this->t('{core:frontpage:' . $func['required']. '}') . '</td><td>' . $func['descr'] . '</td></tr>'; + echo '<tr class="' . ($func['enabled'] ? 'enabled' : 'disabled') . '"><td>' . ($func['enabled'] ? $icon_enabled : $icon_disabled) . '</td>'; + echo '<td>' . $this->t($t->data['requiredmap'][$func['required']]) . '</td><td>' . $func['descr'] . '</td></tr>'; } echo('</table></div>'); } diff --git a/modules/core/www/frontpage_config.php b/modules/core/www/frontpage_config.php index 5bff9f2673b3621cde1d952744552f85e081cf7d..cd22c05d7eb0252d9aebe5c545f838b25695a974 100644 --- a/modules/core/www/frontpage_config.php +++ b/modules/core/www/frontpage_config.php @@ -177,6 +177,7 @@ $t->data['links_federation'] = $links_federation; $t->data['enablematrix'] = $enablematrix; $t->data['funcmatrix'] = $funcmatrix; +$t->data['requiredmap'] = array('recommended' => $t->noop('{core:frontpage:recommended}'); $t->data['version'] = $config->getVersion(); $t->data['directory'] = dirname(dirname(dirname(dirname(__FILE__))));