};
foreach my $key (keys %Triple::page) {
my @set = @{$Triple::page{$key}};
- next if $set[PAGE_TYPE] != STATIC_PAGE;
+ next if $set[Triple::PAGE_TYPE] != Triple::STATIC_PAGE;
syslog("info", "Marking Static '$key'");
$vars->{"uri"} = "$key";
- $vars->{"title"} = "$set[PAGE_TITLE]";
- $vars->{"description"} = "$set[PAGE_DESCRIPTION]";
+ $vars->{"title"} = "$set[Triple::PAGE_TITLE]";
+ $vars->{"description"} = "$set[Triple::PAGE_DESCRIPTION]";
syslog("info", $vars->{"uri"} . " " . $vars->{"title"} . " " . $vars->{"description"});
my $temporary;
- $template->process($set[PAGE_TT], $vars, \$temporary) or syslog("info", $template->error());
+ $template->process($set[Triple::PAGE_TT], $vars, \$temporary) or syslog("info", $template->error());
$static{$key} = $temporary;
}
}