use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");$C->{template} = sub {$this->replaceOutput([]);$this->out("Subject: A role you obtained has been approved\n\n$C->{User}{name},\n\nA role you obtained has just been approved by admin:\n\nRole: $C->{UserRole}{role_title}\n\nYou can login here:\n$C->{SYS}{URI}\n");return join("",@{ $this->restoreOutput });};$this->out(&{$C->{template}}."\n");}