]> git.sesse.net Git - wloh/blobdiff - include/common.pm
Increase the expiry time for the ratings page, and rely on clearing it explicitly...
[wloh] / include / common.pm
index 9348b15da9a10bb67736234c8ad465d575c5733c..207bfe9297d836b2e7a8fa979ad1bf1725dfbe6e 100644 (file)
@@ -161,4 +161,17 @@ sub get_ordinal {
        }       
 }
 
+sub find_all_locales {
+       my $dbh = shift;
+       my $q = $dbh->prepare('SELECT kultur FROM fotballspraak WHERE nyestesesong<>-1');
+       $q->execute;
+
+       my @locales = ();
+       while (my $ref = $q->fetchrow_hashref) {
+               push @locales, $ref->{'kultur'};
+       }
+
+       return @locales;
+}
+
 1;