fixed the remainder of the bugs checked in yesterday

This commit is contained in:
JT Smith 2005-07-21 16:23:16 +00:00
parent 8bb98ef5a0
commit 80e5de1f7a
2 changed files with 2 additions and 19 deletions

View file

@ -294,8 +294,6 @@ sub getToolbar {
sub view {
my $self = shift;
# we've got to determine what our start point is based upon user conditions
use Time::HiRes;
my $t = [Time::HiRes::gettimeofday()];
my $start;
$session{asset} = WebGUI::Asset->newByUrl unless (exists $session{asset});
my $current = $session{asset};
@ -326,8 +324,6 @@ my $t = [Time::HiRes::gettimeofday()];
$rules{assetToPedigree} = $current if (isIn("pedigree",@includedRelationships));
$rules{ancestorLimit} = $self->get("ancestorEndPoint");
my $assets = $start->getLineage(\@includedRelationships,\%rules);
my $timeoutput = "get records: ".Time::HiRes::tv_interval($t)."<br />";
my $t = [Time::HiRes::gettimeofday()];
my $var = {'page_loop' => []};
my @interestingProperties = ('assetId', 'parentId', 'ownerUserId', 'synopsis', 'newWindow');
foreach my $property (@interestingProperties) {
@ -432,12 +428,7 @@ my $t = [Time::HiRes::gettimeofday()];
}
push(@{$var->{page_loop}}, $pageData);
}
$timeoutput .= "build vars: ".Time::HiRes::tv_interval($t)."<br />";
my $t = [Time::HiRes::gettimeofday()];
my $output = $self->processTemplate($var,$self->get("templateId"));
$timeoutput .= "process template: ".Time::HiRes::tv_interval($t)."<br />";
return $output."<br />".$timeoutput;
return $self->processTemplate($var,$self->get("templateId"));
}