diff options
Diffstat (limited to 'extensions/BugModal/lib')
-rw-r--r-- | extensions/BugModal/lib/MonkeyPatches.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/extensions/BugModal/lib/MonkeyPatches.pm b/extensions/BugModal/lib/MonkeyPatches.pm index 1d902b2a9..596746b32 100644 --- a/extensions/BugModal/lib/MonkeyPatches.pm +++ b/extensions/BugModal/lib/MonkeyPatches.pm @@ -36,3 +36,14 @@ sub moz_nick { } 1; + +package Bugzilla::Attachment; +use strict; +use warnings; + +sub is_image { + my ($self) = @_; + return substr($self->contenttype, 0, 6) eq 'image/'; +} + +1; |