From: Frédéric Buclin Date: Wed, 2 Jan 2013 12:16:49 +0000 (+0100) Subject: Bug 825781: extensions/create.pl should capitalize the name of the new extension... X-Git-Tag: bugzilla-4.5.1~245 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4ae025dbd628fb0c816a0e7c9b1b37c2feaf303;p=thirdparty%2Fbugzilla.git Bug 825781: extensions/create.pl should capitalize the name of the new extension automatically instead of complaining r=glob a=LpSolit --- diff --git a/extensions/create.pl b/extensions/create.pl index c48f60df82..e5a436845c 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 }); }