Răsfoiți Sursa

Added total Topics

doomshammer 25 ani în urmă
părinte
comite
b9512544cf
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 7 0
      pisg.pl

+ 7 - 0
pisg.pl

@@ -2147,6 +2147,10 @@ sub lasttopics
 {
 {
     debug("Total number of topics: ". scalar @topics);
     debug("Total number of topics: ". scalar @topics);
 
 
+    my %hash = (
+	    total => scalar @topics
+    );
+
     if (@topics) {
     if (@topics) {
         my $ltopic = @topics - 1;
         my $ltopic = @topics - 1;
         my $tlimit = 0;
         my $tlimit = 0;
@@ -2171,6 +2175,9 @@ sub lasttopics
        } else {
        } else {
             html("<tr><td bgcolor=\"$conf->{hicell}\">" . template_text('notopic') ."</td></tr>");
             html("<tr><td bgcolor=\"$conf->{hicell}\">" . template_text('notopic') ."</td></tr>");
        }
        }
+	   if(@topics) {
+		html("<tr><td align=\"center\" colspan=\"2\">" . template_text('totaltopic', %hash) . "</td></tr>");
+	   }
 }
 }