]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: Fix up bogus $stylesheet declarations
authorPetr Baudis <redacted>
Thu, 26 Oct 2006 12:41:25 +0000 (14:41 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index c2b70fa0f9a7256b7cc84ce455d34d4e4f8c8c5068dc48c0e34149c386a9c2b2..d1a4fb8444380ead9b25d84d5c3ce97512766f758916cb37f703b1fb720897ef 100755 (executable)
@@ -51,9 +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 a single stylesheet, which can be overridden in GITWEB_CONFIG.
+our $stylesheet = undef;
 
 # URI of GIT logo (72x27 size)
 our $logo = "++GITWEB_LOGO++";
This page took 0.282244 seconds and 4 git commands to generate.