summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2013-01-02 13:16:49 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-01-02 13:16:49 +0100
commita4ae025dbd628fb0c816a0e7c9b1b37c2feaf303 (patch)
tree1f75216aab1f2c4283e82b57316ee0fe9de0c0e5 /extensions
parent67490ab7b2e7ce850af3c27d82b4ba014c1b5e90 (diff)
downloadbugzilla-a4ae025dbd628fb0c816a0e7c9b1b37c2feaf303.tar.gz
bugzilla-a4ae025dbd628fb0c816a0e7c9b1b37c2feaf303.tar.xz
Bug 825781: extensions/create.pl should capitalize the name of the new extension automatically instead of complaining
r=glob a=LpSolit
Diffstat (limited to 'extensions')
-rwxr-xr-xextensions/create.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/create.pl b/extensions/create.pl
index c48f60df8..e5a436845 100755
--- a/extensions/create.pl
+++ b/extensions/create.pl
@@ -20,6 +20,7 @@ use File::Path qw(mkpath);
my $base_dir = bz_locations()->{'extensionsdir'};
my $name = $ARGV[0] or ThrowUserError('extension_create_no_name');
+$name = ucfirst($name);
if ($name !~ /^[A-Z]/) {
ThrowUserError('extension_first_letter_caps', { name => $name });
}