]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/recentchanges.pm
Add modified opengraph plugin.
[git.ikiwiki.info.git] / IkiWiki / Plugin / recentchanges.pm
index 4c186325562cad93869ea4b0fe49ab305dcdf2cc..2b2f43b7ae19fa89a2facf4ba02aca4b66ed671a 100644 (file)
@@ -102,7 +102,7 @@ sub sessioncgi ($$) {
        IkiWiki::decode_form_utf8($form);
 
        if ($form->submitted eq 'Revert' && $form->validate) {
-               IkiWiki::checksessionexpiry($q, $session, $q->param('sid'));
+               IkiWiki::checksessionexpiry($q, $session);
                my $message=sprintf(gettext("This reverts commit %s"), $rev);
                if (defined $form->field('revertmessage') &&
                    length $form->field('revertmessage')) {
@@ -181,7 +181,7 @@ sub store ($$$) {
                        else {
                                $_->{link} = pagetitle($_->{page});
                        }
-                       if (defined $_->{diffurl}) {
+                       if (defined $_->{diffurl} && length($_->{diffurl})) {
                                $has_diffurl=1;
                        }