diff options
author | Gervase Markham <gerv@gerv.net> | 2014-01-27 16:08:01 +0100 |
---|---|---|
committer | Gervase Markham <gerv@mozilla.org> | 2014-01-27 16:08:01 +0100 |
commit | bce648342fa487a9afba9124b1db402678f0d67f (patch) | |
tree | 6563dc1f3f391b7069caa740ae99989f85a1ec20 /docs/en/rst/customization.rst | |
parent | 10cc520ecb23683b3ae83a817e4457bc2fdc01fb (diff) | |
download | bugzilla-bce648342fa487a9afba9124b1db402678f0d67f.tar.gz bugzilla-bce648342fa487a9afba9124b1db402678f0d67f.tar.xz |
Bug 962571 - Fix syntax highlighting of code blocks. r=LpSolit, a=justdave.
Diffstat (limited to 'docs/en/rst/customization.rst')
-rw-r--r-- | docs/en/rst/customization.rst | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/docs/en/rst/customization.rst b/docs/en/rst/customization.rst index 4238f1650..929c75279 100644 --- a/docs/en/rst/customization.rst +++ b/docs/en/rst/customization.rst @@ -1,4 +1,4 @@ - +.. highlight:: perl .. _customization: @@ -406,7 +406,7 @@ In between those sections, you'll find snippets of code like: # Allow the assignee to change anything. if ($ownerid eq $whoid) { - return 1; + return 1; } It's fairly obvious what this piece of code does. @@ -428,12 +428,12 @@ or a negative check, which returns 0 (deny.) E.g.: :: if ($field eq "qacontact") { - if (Bugzilla->user->in_group("quality_assurance")) { - return 1; - } - else { - return 0; - } + if (Bugzilla->user->in_group("quality_assurance")) { + return 1; + } + else { + return 0; + } } This says that only users in the group "quality_assurance" can change @@ -444,14 +444,14 @@ Getting more weird: :: if (($field eq "priority") && - (Bugzilla->user->email =~ /.*\\@example\\.com$/)) + (Bugzilla->user->email =~ /.*\\@example\\.com$/)) { - if ($oldvalue eq "P1") { - return 1; - } - else { - return 0; - } + if ($oldvalue eq "P1") { + return 1; + } + else { + return 0; + } } This says that if the user is trying to change the priority field, |