Skip to content

Commit

Permalink
Fix to allow standard description a well
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Nov 23, 2024
1 parent 1ea8d82 commit 80f9719
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions workbench.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ my $d = &get_domain($in{'dom'});
my ($sinfo) = grep { $_->{'id'} eq $in{'sid'} } &list_domain_scripts($d);
my $script = &get_script($sinfo->{'name'});
$script || &error($text{'scripts_emissing'});
my $desc = $script->{'tmdesc'} || $script->{'desc'};

# Run
my $apply_func = $script->{'kit_apply_func'};
if (defined(&$apply_func)) {
# Print header
&ui_print_unbuffered_header(&domain_in($d),
&text("scripts_kit", $script->{'tmdesc'}), "");
&text("scripts_kit", $desc), "");
&$apply_func($d, \%in, $sinfo, $script);
# Print footer
&ui_print_footer(
Expand All @@ -32,5 +33,5 @@ if (defined(&$apply_func)) {
&domain_footer_link($d));
}
else {
&error(&text('scripts_gpl_pro_tip_workbench_enot', $script->{'tmdesc'}));
&error(&text('scripts_gpl_pro_tip_workbench_enot', $desc));
}

0 comments on commit 80f9719

Please sign in to comment.