Sfoglia il codice sorgente

Fix for some weird bugs.

Also change mostreferenced() to mostreferencednicks()
Morten Brix Pedersen 25 anni fa
parent
commit
4b8dc35dbe
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      pisg.pl

+ 4 - 4
pisg.pl

@@ -294,7 +294,7 @@ sub init_config
         while (my $line = <CONFIG>)
         while (my $line = <CONFIG>)
         {
         {
             $lineno++;
             $lineno++;
-            next if /^#/;
+            next if ($line =~ /^#/);
 
 
             if ($line =~ /<user.*>/) {
             if ($line =~ /<user.*>/) {
                 my $nick;
                 my $nick;
@@ -1070,7 +1070,7 @@ sub create_html
 
 
     mostusedword();
     mostusedword();
 
 
-    mostreferenced();
+    mostreferencednicks();
 
 
     mosturls();
     mosturls();
 
 
@@ -1419,7 +1419,7 @@ sub mostwordsperline
 
 
 }
 }
 
 
-sub mostreferenced
+sub mostreferencednicks
 {
 {
     my %usages;
     my %usages;
 
 
@@ -2429,7 +2429,7 @@ sub get_language_templates
 
 
     while (my $line = <FILE>)
     while (my $line = <FILE>)
     {
     {
-        next if /^#/;
+        next if ($line =~ /^#/);
 
 
         if ($line =~ /<lang name=\"([^"]+)\">/) {
         if ($line =~ /<lang name=\"([^"]+)\">/) {
             # Found start tag, setting the current language
             # Found start tag, setting the current language