447 |
|
my $hashref=shift; |
448 |
|
|
449 |
|
$self->checktag($name,$hashref,'name'); |
450 |
< |
if ( !( exists $$hashref{'type'}) || ( exists $$hashref{'url'}) ) { |
450 |
> |
if ( !(( exists $$hashref{'type'}) || ( exists $$hashref{'url'})) ) { |
451 |
|
$self->parseerror("No url or type given in <$name> tag"); |
452 |
|
} |
453 |
|
if ( ! exists $self->{structures}{$$hashref{'name'}} ) { |
463 |
|
$self->{structures}{$$hashref{'name'}}->name($$hashref{'name'}); |
464 |
|
$self->{structures}{$$hashref{'name'}}->parent($self); |
465 |
|
$self->{structures}{$$hashref{'name'}}->vars($hashref); |
466 |
+ |
$self->{structures}{$$hashref{'name'}}->arch($self->arch()); |
467 |
|
} |
468 |
|
else { # its an activedoc |
469 |
|
$self->{structures}{$$hashref{'name'}}= |