aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorKoosha KM <koosha.khajeh@gmail.com>2014-08-28 17:17:54 +0000
committerDavid Lawrence <dkl@mozilla.com>2014-08-28 17:17:54 +0000
commitec5caa57cc14a328b8b994d49cb8def8eb95aea7 (patch)
tree08eec320a2361b41fcd400259770d6357a913e15 /Bugzilla.pm
parent82346032ecfef148e78a8d19e17c5ed41ed41d10 (diff)
downloadbugs-ec5caa57cc14a328b8b994d49cb8def8eb95aea7.tar
bugs-ec5caa57cc14a328b8b994d49cb8def8eb95aea7.tar.gz
bugs-ec5caa57cc14a328b8b994d49cb8def8eb95aea7.tar.bz2
bugs-ec5caa57cc14a328b8b994d49cb8def8eb95aea7.tar.xz
bugs-ec5caa57cc14a328b8b994d49cb8def8eb95aea7.zip
Bug 330707: Add optional support for MarkDown
r=dkl,a=sgreen
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index 24ce65c2e..e1f2fde3b 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -397,6 +397,11 @@ sub logout_request {
# there. Don't rely on it: use Bugzilla->user->login instead!
}
+sub markdown {
+ require Bugzilla::Markdown;
+ return $_[0]->request_cache->{markdown} ||= Bugzilla::Markdown->new();
+}
+
sub job_queue {
require Bugzilla::JobQueue;
return $_[0]->request_cache->{job_queue} ||= Bugzilla::JobQueue->new();
@@ -944,6 +949,10 @@ Returns the local timezone of the Bugzilla installation,
as a DateTime::TimeZone object. This detection is very time
consuming, so we cache this information for future references.
+=item C<markdown>
+
+The current L<Markdown|Bugzilla::Markdown> object, to be used for Markdown rendering.
+
=item C<job_queue>
Returns a L<Bugzilla::JobQueue> that you can use for queueing jobs.