]> git.openstreetmap.org Git - rails.git/blobdiff - script/misc/update-wiki-pages
Rename trace_controller to traces_controller
[rails.git] / script / misc / update-wiki-pages
index be69b2c4a8068aceae913a0873d257412315c9c9..84e1e8a1c51117bf9673976cde7ef982cfab2934 100755 (executable)
@@ -50,7 +50,7 @@ help() unless -f $out_file;
 # Get a API interface
 my $mw = MediaWiki::API->new();
 ok($mw, "Got a MediaWiki API");
-$mw->{config}->{api_url} = 'http://wiki.openstreetmap.org/w/api.php';
+$mw->{config}->{api_url} = 'https://wiki.openstreetmap.org/w/api.php';
 
 # All our goodies
 my (%feature, %count);
@@ -63,6 +63,7 @@ for my $lang ('', map { "${_}:" } qw[ Pt Fi De It HU Cz Fr RU Pl ]) {
     # Key pages
     ok(1, "    Getting key pages");
     my $cnt = stick_content_in_hash("key", "Template:${lang}KeyDescription", \%feature);
+    $cnt += stick_content_in_hash("key", "Template:${lang}Feature", \%feature);
     ok(1, "    Got $cnt key pages");
     $count{key} += $cnt;