customvars.phtml: Show a customvar name as-is

Don't uppercase first, exchange `_` for spaces and lower everything else

resolves #3987
This commit is contained in:
Johannes Meyer 2020-05-13 14:56:58 +02:00
parent cd2ff3d925
commit 87e676e1fb
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<?php foreach ($object->customvars as $name => $value): ?>
<tr>
<th><?= $this->escape(ucwords(str_replace('_', ' ', strtolower($name)))) ?></th>
<th><?= $this->escape($name) ?></th>
<td class="custom-variables"><?= $this->customvar($value) ?></td>
</tr>
<?php endforeach ?>