]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/inline.pm
web commit by PaulWise: add pabs' site/blog
[git.ikiwiki.info.git] / IkiWiki / Plugin / inline.pm
index 5378cc9391bd98db8a621b80b647ba0198dd7676..30b09d1ad260088d540011f10924b5cf4e3a9832 100644 (file)
@@ -64,6 +64,7 @@ sub sessioncgi () { #{{{
                # now go create the page
                $q->param('do', 'create');
                IkiWiki::cgi_editpage($q, $session);
+               exit;
        }
 }
 
@@ -314,7 +315,7 @@ sub date_3339 ($) { #{{{
 
        my $lc_time=POSIX::setlocale(&POSIX::LC_TIME);
        POSIX::setlocale(&POSIX::LC_TIME, "C");
-       my $ret=POSIX::strftime("%Y-%m-%dT%H:%M:%SZ", localtime($time));
+       my $ret=POSIX::strftime("%Y-%m-%dT%H:%M:%SZ", gmtime($time));
        POSIX::setlocale(&POSIX::LC_TIME, $lc_time);
        return $ret;
 } #}}}
@@ -361,8 +362,10 @@ sub genfeed ($$$$@) { #{{{
                        title => pagetitle(basename($p)),
                        url => $u,
                        permalink => $u,
-                       date_822 => date_822($pagectime{$p}),
-                       date_3339 => date_3339($pagectime{$p}),
+                       cdate_822 => date_822($pagectime{$p}),
+                       mdate_822 => date_822($pagemtime{$p}),
+                       cdate_3339 => date_3339($pagectime{$p}),
+                       mdate_3339 => date_3339($pagemtime{$p}),
                );
 
                if ($itemtemplate->query(name => "enclosure")) {
@@ -397,7 +400,7 @@ sub genfeed ($$$$@) { #{{{
                $content.=$itemtemplate->output;
                $itemtemplate->clear_params;
 
-               $lasttime = $pagectime{$p} if $pagectime{$p} > $lasttime;
+               $lasttime = $pagemtime{$p} if $pagemtime{$p} > $lasttime;
        }
 
        my $template=template($feedtype."page.tmpl", blind_cache => 1);