default => 'Help',
);
+has comment_if_helptext_not_found => (
+ is => 'ro',
+ default => 1,
+ isa => 'Bool',
+);
+
sub help_text {
my ($self, $c, $key) = @_;
my $model = try { $c->model($self->helptext_model) };
catch {
$c->log->warn("Error retrieving help_text key '$key' from model: $_")
if $c->debug;
- return '';
+ return '' unless $self->comment_if_helptext_not_found;
+ return '<!-- Unknown help text: ' . $key . ' -->';
};
}
This sofware is free software, and is licensed under the same terms as perl itself.
-=cut
\ No newline at end of file
+=cut
+