]> git.ipfire.org Git - thirdparty/git.git/commitdiff
gitweb: Fix up bogus $stylesheet declarations
authorPetr Baudis <pasky@suse.cz>
Thu, 26 Oct 2006 12:41:25 +0000 (14:41 +0200)
committerJunio C Hamano <junkio@cox.net>
Sat, 28 Oct 2006 00:15:41 +0000 (17:15 -0700)
This seems to be a pre-++ residual declaration and it wasn't good for
anything at all besides flooding the webserver errorlog with "omg, our in
the same scope!!" warnings.

[jc: the patch was bogus by defining the variable which defeated a
 later test that checked it with "defined", which I fixed up.]

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl

index aceaeb76750f875f6a02177a64b279ac2ad0cb7a..7b2499af1ecaf11fa4bd775d2bfcc2abc5f477c0 100755 (executable)
@@ -51,12 +51,8 @@ our $site_footer = "++GITWEB_SITE_FOOTER++";
 
 # URI of stylesheets
 our @stylesheets = ("++GITWEB_CSS++");
-our $stylesheet;
-# default is not to define style sheet, but it can be overwritten later
-undef $stylesheet;
-
-# URI of default stylesheet
-our $stylesheet = "++GITWEB_CSS++";
+# URI of a single stylesheet, which can be overridden in GITWEB_CONFIG.
+our $stylesheet = undef;
 # URI of GIT logo (72x27 size)
 our $logo = "++GITWEB_LOGO++";
 # URI of GIT favicon, assumed to be image/png type