diff --git a/modules/admin/lib/FederationController.php b/modules/admin/lib/FederationController.php index cea4f480a6798aa364e36fd7da842f26deb9d195..883db73399d7547e3dad5f16a77ead53dfc0ad50 100644 --- a/modules/admin/lib/FederationController.php +++ b/modules/admin/lib/FederationController.php @@ -511,6 +511,7 @@ class FederationController $metadata = $this->mdHandler->getMetaData($entityId, $set); $t = new Template($this->config, 'admin:show_metadata.twig'); + $t->data['entityid'] = $entityId; $t->data['metadata'] = var_export($metadata, true); return $t; } diff --git a/modules/admin/templates/show_metadata.twig b/modules/admin/templates/show_metadata.twig index ca136e1d7d52e842886867b08702d926d9e9b17f..ca51cca1cc41490a346a916e2f37244601f55531 100644 --- a/modules/admin/templates/show_metadata.twig +++ b/modules/admin/templates/show_metadata.twig @@ -9,7 +9,7 @@ title="{% trans %}Copy to clipboard{% endtrans %}"><span class="fa fa-copy"></span></a> </div> <div id="metadata" class="code-box-content php"> - {#- #}$metadata[{{ entityid }}] => {{ metadata|escape }};{# -#} + {#- #}$metadata["{{ entityid }}"] => {{ metadata|escape }};{# -#} </div> </div> <div class="center">