openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit c823dab3ab672c329480a266702486d32e1ea6b9
parent 2dd8a5ce31fa48a6846e5adffcfc7dd50cb647ea
Author: dankert <openrat@jandankert.de>
Date:   Sun, 10 Apr 2022 11:59:03 +0200

Fix: Output the model name instead of the language (there is no language in this context).

Diffstat:
Mmodules/cms/ui/themes/default/html/views/template/history.php | 2+-
Mmodules/cms/ui/themes/default/html/views/template/history.tpl.src.xml | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/cms/ui/themes/default/html/views/template/history.php b/modules/cms/ui/themes/default/html/views/template/history.php @@ -11,7 +11,7 @@ <h2 class="<?php echo O::escapeHtml('or-collapsible-title or-group-title or-collapsible-act-switch') ?>"><?php echo O::escapeHtml('') ?> <i class="<?php echo O::escapeHtml('or-image-icon or-image-icon--node-closed or-collapsible--on-closed') ?>"><?php echo O::escapeHtml('') ?></i> <i class="<?php echo O::escapeHtml('or-image-icon or-image-icon--node-open or-collapsible--on-open') ?>"><?php echo O::escapeHtml('') ?></i> - <span><?php echo O::escapeHtml(''.@O::lang('language').': '.@$language['name'].'') ?></span> + <span><?php echo O::escapeHtml(''.@O::lang('model').': '.@$model['name'].'') ?></span> </h2> <div class="<?php echo O::escapeHtml('or-collapsible-value or-group-value') ?>"><?php echo O::escapeHtml('') ?> <div class="<?php echo O::escapeHtml('or-table-wrapper') ?>"><?php echo O::escapeHtml('') ?> diff --git a/modules/cms/ui/themes/default/html/views/template/history.tpl.src.xml b/modules/cms/ui/themes/default/html/views/template/history.tpl.src.xml @@ -3,7 +3,7 @@ <form method="get" subaction="diff" label="${message:compare}" cancel="false" visible="true"> <list list="${models}" value="model" extract="true"> - <group collapsible="true" title="${message:language}: ${language.name}"> + <group collapsible="true" title="${message:model}: ${model.name}"> <table> <row header="true">