]> 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:16:49 +0000 (13:16 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 2 Jan 2013 12:16:49 +0000 (13:16 +0100)
r=glob a=LpSolit

extensions/create.pl

index c48f60df82155a5b76f4d49429ee1c99be44bed0..e5a436845c6e467c4f54e1b4ecf91bbb042df812 100755 (executable)
@@ -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 });
 }