aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoosha KM <koosha.khajeh@gmail.com>2014-09-11 13:55:01 +0000
committerDavid Lawrence <dkl@mozilla.com>2014-09-11 13:55:01 +0000
commitc11b241b985511c01803df200d31afb793f11903 (patch)
tree2a0ab29fd9f6ea126813b7e98cb1164931534cde /Bugzilla.pm
parentBug 1052724: Use JSON::XS instead of Data::Dumper to store parameters into da... (diff)
downloadbugzilla-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.pm')
-rw-r--r--Bugzilla.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index 7d935db48..af670e90f 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -398,6 +398,8 @@ sub logout_request {
}
sub markdown {
+ return if !Bugzilla->feature('markdown');
+
require Bugzilla::Markdown;
return $_[0]->request_cache->{markdown} ||= Bugzilla::Markdown->new();
}