automatically generated documentation has to get a session var, too

This commit is contained in:
Colin Kuskie 2006-01-14 00:28:58 +00:00
parent f55e487d3e
commit cc370e180f
3 changed files with 34 additions and 19 deletions

View file

@ -21,7 +21,8 @@ our $HELP = {
body => 'macros list body',
fields => [
],
related => [
related => sub { ##Hey, you gotta pass in the session var, right?
my $session = shift;
sort { $a->{tag} cmp $b->{tag} }
map {
$tag = $_;
@ -33,8 +34,8 @@ our $HELP = {
{ tag => $tag,
namespace => $namespace }
}
values %{ $self->session->config->get("macros") }
],
values %{ $session->config->get("macros") }
},
},
};