summaryrefslogtreecommitdiffstats
path: root/Bugzilla/BugUrl/MantisBT.pm
diff options
context:
space:
mode:
authorMatt Selsky <selsky@columbia.edu>2012-06-17 14:19:09 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-06-17 14:19:09 +0200
commit4c236f418a7122cecd22c36c679a7b9faf5469f7 (patch)
tree93326ee30db6f08ef84a99f74fdb8f6fea3e9d8e /Bugzilla/BugUrl/MantisBT.pm
parent35bf9943a87018e6cfa2d49f83f77c22205ddfc0 (diff)
downloadbugzilla-4c236f418a7122cecd22c36c679a7b9faf5469f7.tar.gz
bugzilla-4c236f418a7122cecd22c36c679a7b9faf5469f7.tar.xz
Bug 759030: Clean up Bugzilla::BugUrl modules
r=timello a=LpSolit
Diffstat (limited to 'Bugzilla/BugUrl/MantisBT.pm')
-rw-r--r--Bugzilla/BugUrl/MantisBT.pm9
1 files changed, 3 insertions, 6 deletions
diff --git a/Bugzilla/BugUrl/MantisBT.pm b/Bugzilla/BugUrl/MantisBT.pm
index 02a17a64d..3d49ede69 100644
--- a/Bugzilla/BugUrl/MantisBT.pm
+++ b/Bugzilla/BugUrl/MantisBT.pm
@@ -9,15 +9,15 @@ package Bugzilla::BugUrl::MantisBT;
use strict;
use base qw(Bugzilla::BugUrl);
-use Bugzilla::Error;
-use Bugzilla::Util;
-
###############################
#### Methods ####
###############################
sub should_handle {
my ($class, $uri) = @_;
+
+ # MantisBT URLs look like the following ('bugs' directory is optional):
+ # http://www.mantisbt.org/bugs/view.php?id=1234
return ($uri->path_query =~ m|view\.php\?id=\d+$|) ? 1 : 0;
}
@@ -26,9 +26,6 @@ sub _check_value {
my $uri = $class->SUPER::_check_value(@_);
- # MantisBT URLs look like the following ('bugs' directory is optional):
- # http://www.mantisbt.org/bugs/view.php?id=1234
-
# Remove any # part if there is one.
$uri->fragment(undef);