Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
c11b241b
Commit
c11b241b
authored
Sep 11, 2014
by
Koosha KM
Committed by
David Lawrence
Sep 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1064933: Bugzilla.pm does not compile without Text::Markdown
r=glob,a=sgreen
parent
e1603d01
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
Bugzilla.pm
Bugzilla.pm
+2
-0
Markdown.pm
Bugzilla/Markdown.pm
+1
-2
Template.pm
Bugzilla/Template.pm
+3
-2
No files found.
Bugzilla.pm
View file @
c11b241b
...
...
@@ -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
();
}
...
...
Bugzilla/Markdown.pm
View file @
c11b241b
...
...
@@ -62,8 +62,7 @@ sub markdown {
my
$text
=
shift
;
my
$user
=
Bugzilla
->
user
;
if
(
Bugzilla
->
feature
(
'markdown'
)
&&
$user
->
settings
->
{
use_markdown
}
->
{
is_enabled
}
if
(
$user
->
settings
->
{
use_markdown
}
->
{
is_enabled
}
&&
$user
->
setting
(
'use_markdown'
)
eq
'on'
)
{
return
$self
->
SUPER::
markdown
(
$text
,
@_
);
...
...
Bugzilla/Template.pm
View file @
c11b241b
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment