gitweb: Fix up bogus $stylesheet declarations
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>
Petr Baudis committed
Oct 26, 2006 at 14:41 UTC
887a612fef942dd3e7dae452e2dc582738b0fb41
1 file changed
+2
-6
gitweb/gitweb.perl
+2
-6
@@ -51,12 +51,8 @@ our $site_footer = "++GITWEB_SITE_FOOTER++";
51
52
# URI of stylesheets
53
our @stylesheets = ("++GITWEB_CSS++");
54
-our $stylesheet;
55
-# default is not to define style sheet, but it can be overwritten later
56
-undef $stylesheet;
57
-
58
-# URI of default stylesheet
59
-our $stylesheet = "++GITWEB_CSS++";
54
+# URI of a single stylesheet, which can be overridden in GITWEB_CONFIG.
55
+our $stylesheet = undef;
56
# URI of GIT logo (72x27 size)
57
our $logo = "++GITWEB_LOGO++";
58
# URI of GIT favicon, assumed to be image/png type