Changeset 27261 for main/trunk/greenstone2/perllib/cgiactions/baseaction.pm
- Timestamp:
- 2013-04-26T18:30:12+12:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/cgiactions/baseaction.pm
r27159 r27261 87 87 $err_mess .= "\n"; 88 88 } 89 90 my @help_examples = (); 91 if(defined $action_table->{$a}->{'help-string'}) { 92 push(@help_examples, @{$action_table->{$a}->{'help-string'}}); 93 } 94 if (scalar(@help_examples)>0) { 95 96 if (scalar(@help_examples)>1) { 97 $err_mess .= " Example(s) :\n"; 98 } else { 99 $err_mess .= " Example :\n"; 100 } 101 $err_mess .= join(", \n\n", @help_examples); 102 $err_mess .= "\n\nTo be strictly CGI-compliant special chars like double-quotes,&,?,<,> must be URL encoded.\n"; 103 } 104 89 105 $err_mess .= "\n"; 90 106 } … … 203 219 204 220 205 206 207 221 sub authenticate_user 208 222 { … … 449 463 450 464 451 452 453 465 sub run_script 454 466 { … … 493 505 } 494 506 495 496 497 498 507 1;
Note:
See TracChangeset
for help on using the changeset viewer.