Skip to content

Commit 179decf

Browse files
committed
Fix to allow standard description a well
1 parent 7dce124 commit 179decf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: workbench.cgi

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ my $d = &get_domain($in{'dom'});
1515
my ($sinfo) = grep { $_->{'id'} eq $in{'sid'} } &list_domain_scripts($d);
1616
my $script = &get_script($sinfo->{'name'});
1717
$script || &error($text{'scripts_emissing'});
18+
my $desc = $script->{'tmdesc'} || $script->{'desc'};
1819

1920
# Run
2021
my $apply_func = $script->{'kit_apply_func'};
2122
if (defined(&$apply_func)) {
2223
# Print header
2324
&ui_print_unbuffered_header(&domain_in($d),
24-
&text("scripts_kit", $script->{'tmdesc'}), "");
25+
&text("scripts_kit", $desc), "");
2526
&$apply_func($d, \%in, $sinfo, $script);
2627
# Print footer
2728
&ui_print_footer(
@@ -32,5 +33,5 @@ if (defined(&$apply_func)) {
3233
&domain_footer_link($d));
3334
}
3435
else {
35-
&error(&text('scripts_gpl_pro_tip_workbench_enot', $script->{'tmdesc'}));
36+
&error(&text('scripts_gpl_pro_tip_workbench_enot', $desc));
3637
}

0 commit comments

Comments
 (0)