po(change): reset renamed pages status at a better time
authorintrigeri <intrigeri@boum.org>
Thu, 13 Nov 2008 03:37:26 +0000 (04:37 +0100)
committerintrigeri <intrigeri@boum.org>
Thu, 13 Nov 2008 03:37:26 +0000 (04:37 +0100)
Signed-off-by: intrigeri <intrigeri@boum.org>
IkiWiki/Plugin/po.pm

index d4280853feeb7793236b2ca11fea87f2afe671f0..ae97a2f380bb9fbc0518ea865dda04bcccd5cae2 100644 (file)
@@ -363,6 +363,7 @@ sub change(@) { #{{{
        while (my ($oldpage, $newpage) = $eachrenamed->()) {
                renametranslations($oldpage, $newpage);
        }
+       resetrenamed();
 
        my $updated_po_files=0;
 
@@ -402,7 +403,6 @@ sub change(@) { #{{{
                }
                # Reinitialize module's private variables.
                resetalreadyfiltered();
-               resetrenamed();
                resettranslationscache();
                flushmemoizecache();
                # Trigger a wiki refresh.