Changeset 11681


Ignore:
Timestamp:
2006-04-21T15:20:09+12:00 (18 years ago)
Author:
kjdon
Message:

print_xml_usage and print_xml_header now take arguments

Location:
trunk/gsdl/perllib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/classify/BasClas.pm

    r11669 r11681  
    111111{
    112112    my $self = shift(@_);
    113 
     113    my $header = shift(@_);
     114   
    114115    # XML output is always in UTF-8
    115116    &gsprintf::output_strings_in_UTF8;
    116117
    117     &PrintUsage::print_xml_header("classify");
     118    if ($header) {
     119    &PrintUsage::print_xml_header("classify");
     120    }
    118121    $self->print_xml();
    119122}
  • trunk/gsdl/perllib/plugins/BasPlug.pm

    r11669 r11681  
    237237{
    238238    my $self = shift(@_);
    239 
     239    my $header = shift(@_);
     240   
    240241    # XML output is always in UTF-8
    241242    gsprintf::output_strings_in_UTF8;
    242243
    243     PrintUsage::print_xml_header("plugin");
     244    if ($header) {
     245    &PrintUsage::print_xml_header("plugin");
     246    }
    244247    $self->print_xml();
    245248}
Note: See TracChangeset for help on using the changeset viewer.