diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-02-23 11:18:29 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-02-23 11:18:29 +0100 |
commit | 74325f1f94bd3a36856255f48cd8394d75a8ffbf (patch) | |
tree | c2b7d2a237b8543eb7672b56a1d403743855638e /core | |
parent | e01e1696da925c31c662a1733391d18b36fc0def (diff) | |
download | nextcloud-server-74325f1f94bd3a36856255f48cd8394d75a8ffbf.tar.gz nextcloud-server-74325f1f94bd3a36856255f48cd8394d75a8ffbf.zip |
Use array in t() calls in exception template
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core')
-rw-r--r-- | core/templates/exception.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/templates/exception.php b/core/templates/exception.php index 0ae82b9308d..fcfa8687710 100644 --- a/core/templates/exception.php +++ b/core/templates/exception.php @@ -12,14 +12,14 @@ style('core', ['styles', 'header']); <h3><?php p($l->t('Technical details')) ?></h3> <ul> - <li><?php p($l->t('Remote Address: %s', $_['remoteAddr'])) ?></li> - <li><?php p($l->t('Request ID: %s', $_['requestID'])) ?></li> + <li><?php p($l->t('Remote Address: %s', [$_['remoteAddr']])) ?></li> + <li><?php p($l->t('Request ID: %s', [$_['requestID']])) ?></li> <?php if($_['debugMode']): ?> - <li><?php p($l->t('Type: %s', $_['errorClass'])) ?></li> - <li><?php p($l->t('Code: %s', $_['errorCode'])) ?></li> - <li><?php p($l->t('Message: %s', $_['errorMsg'])) ?></li> - <li><?php p($l->t('File: %s', $_['file'])) ?></li> - <li><?php p($l->t('Line: %s', $_['line'])) ?></li> + <li><?php p($l->t('Type: %s', [$_['errorClass']])) ?></li> + <li><?php p($l->t('Code: %s', [$_['errorCode']])) ?></li> + <li><?php p($l->t('Message: %s', [$_['errorMsg']])) ?></li> + <li><?php p($l->t('File: %s', [$_['file']])) ?></li> + <li><?php p($l->t('Line: %s', [$_['line']])) ?></li> <?php endif; ?> </ul> |