diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-10-03 23:52:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-03 23:52:23 +0200 |
commit | b12dbd21abedcfab84b249df52c5e5a039e3d028 (patch) | |
tree | c0c19de509b1fb70b398cf11cbb696ef898ed255 /Bugzilla.pm | |
parent | a909ede27722b171486e85cd07f5f9720d7dbb28 (diff) | |
download | bugzilla-b12dbd21abedcfab84b249df52c5e5a039e3d028.tar.gz bugzilla-b12dbd21abedcfab84b249df52c5e5a039e3d028.tar.xz |
no bug - make libcmark-gfm optional (#792)
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 56020b230..94defda3b 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -29,8 +29,6 @@ use Bugzilla::Flag; use Bugzilla::Hook; use Bugzilla::Install::Localconfig qw(read_localconfig); use Bugzilla::Install::Util qw(init_console include_languages); -use Bugzilla::Markdown::GFM; -use Bugzilla::Markdown::GFM::Parser; use Bugzilla::Memcached; use Bugzilla::Template; use Bugzilla::Token; @@ -750,6 +748,8 @@ sub check_rate_limit { } sub markdown_parser { + require Bugzilla::Markdown::GFM; + require Bugzilla::Markdown::GFM::Parser; return request_cache->{markdown_parser} ||= Bugzilla::Markdown::GFM::Parser->new( {extensions => [qw( autolink tagfilter table strikethrough)] } ); } |