threads / patch / 43752

patchgitweb: Fix up bogus $stylesheet declarations

Subject: [PATCH] gitweb: Fix up bogus $stylesheet declarations

## tl;dr

One message between Oct 26, 2006 and Oct 26, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Petr Baudis· Oct 26, 2006, 12:41 UTC · lore

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.

Signed-off-by: Petr Baudis <pasky@suse.cz>
---
 gitweb/gitweb.perl |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
Show changes to gitweb/gitweb.perl +0 −4
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index d737b2b..1d91f7f 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -51,10 +51,6 @@ 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++";

← back to recent threads