diff options
author | Koosha KM <koosha.khajeh@gmail.com> | 2014-09-11 13:55:01 +0000 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-09-11 13:55:01 +0000 |
commit | c11b241b985511c01803df200d31afb793f11903 (patch) | |
tree | 2a0ab29fd9f6ea126813b7e98cb1164931534cde /Bugzilla/Template.pm | |
parent | Bug 1052724: Use JSON::XS instead of Data::Dumper to store parameters into da... (diff) | |
download | bugzilla-c11b241b985511c01803df200d31afb793f11903.tar.gz bugzilla-c11b241b985511c01803df200d31afb793f11903.tar.bz2 bugzilla-c11b241b985511c01803df200d31afb793f11903.zip |
Bug 1064933: Bugzilla.pm does not compile without Text::Markdown
r=glob,a=sgreen
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r-- | Bugzilla/Template.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 78a3e4120..aee7933ed 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -813,8 +813,9 @@ sub create { my $text = shift; return unless $text; - if ((ref($comment) eq 'HASH' && $comment->{is_markdown}) - || (ref($comment) eq 'Bugzilla::Comment' && $comment->is_markdown)) + if (Bugzilla->feature('markdown') + && ((ref($comment) eq 'HASH' && $comment->{is_markdown}) + || (ref($comment) eq 'Bugzilla::Comment' && $comment->is_markdown))) { return Bugzilla->markdown->markdown($text); } |