]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/po.pm
po(change): fix uninitialized variables when running IkiWiki::refresh()
[ikiwiki.git] / IkiWiki / Plugin / po.pm
index 739564c6bb01b47a866bb180128c1d04ef8b3d21..a8d9b9cd99fa0a545e3e7e0b6e9f38446288b9d6 100644 (file)
@@ -362,6 +362,10 @@ sub change(@) { #{{{
                resettranslationscache();
                # Trigger a wiki refresh.
                require IkiWiki::Render;
+               # without preliminary saveindex/loadindex, refresh()
+               # complains about a lot of uninitialized variables
+               IkiWiki::saveindex();
+               IkiWiki::loadindex();
                IkiWiki::refresh();
                IkiWiki::saveindex();
        }