]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 825781: extensions/create.pl should capitalize the name of the new extension...
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 2 Jan 2013 12:18:06 +0000 (13:18 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 2 Jan 2013 12:18:06 +0000 (13:18 +0100)
r=glob a=LpSolit

extensions/create.pl

index 5f1b884d250ff79a48070303a7de8d27703f43ed..7bcf10373c30e81585ca562e6ab11b95b20e18fc 100755 (executable)
@@ -18,6 +18,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 });
 }