Skip to content

Commit

Permalink
Update templateadmintools.php
Browse files Browse the repository at this point in the history
add template key in admin list as in justinhunt#51
  • Loading branch information
a-kempka authored Nov 18, 2024
1 parent d852fd7 commit 72fc616
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion classes/templateadmintools.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static function fetch_template_table() {
$table->id = 'filter_generico_template_list';
$table->head = array(
get_string('name'),
get_string('templatekey'),
get_string('key', 'filter_generico'),
get_string('version'),
get_string('description')
);
Expand Down Expand Up @@ -135,6 +135,12 @@ public static function fetch_template_details($conf) {
$template_details->index = $tindex;
$template_details->title = $template_title;

if ($conf && property_exists($conf, 'templatekey_' . $tindex)) {
$template_details->templatekey = $conf->{'templatekey_' . $tindex};;
} else {
$template_details->templatekey = '';
}

$template_details->version = "";
if (property_exists($conf, 'templateversion_' . $tindex)) {
$template_details->version = $conf->{'templateversion_' . $tindex};
Expand Down

0 comments on commit 72fc616

Please sign in to comment.