countries: move flag images into data/, ignore
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 5 Feb 2015 08:39:39 +0000 (09:39 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 5 Feb 2015 21:46:21 +0000 (22:46 +0100)
.gitignore
countries.plp

index e503b91d3757ab6cbb6e0e69b347abad58925d80..b117a195a6a878d1181073a54d8b3a42e039ac83 100644 (file)
@@ -1,5 +1,6 @@
 # local copies of downloaded data
 /data/emoji/
+/data/flag
 
 # source data not used directly but converted to includes below
 /data/countryInfo.txt
index 3979501664c9c03c050d6b7b37fd9ecf23ed0611..b310a2fd69f3c9b9fe9954f4580722ac9b77554b 100644 (file)
@@ -36,7 +36,7 @@ my $cc = do 'countries.inc.pl';
                        $ref ||= $code;
                        local $_ = $ref;
                        if (exists $get{show}) {
-                               my $img = "flag/$ref.png";
+                               my $img = "data/flag/$ref.png";
                                $_ = sprintf '<img src="/%s" alt="%s">', $img, $ref if -e $img;
                        }
                        else {