OSDN Git Service

editlogプラグインの更新日時が実際の時刻とずれることがないように修正。
authortakezoe <takezoe@users.osdn.me>
Sun, 28 Aug 2011 17:28:12 +0000 (17:28 +0000)
committertakezoe <takezoe@users.osdn.me>
Sun, 28 Aug 2011 17:28:12 +0000 (17:28 +0000)
plugin/editlog/EditLog.pm

index 1635220..18f2772 100644 (file)
@@ -28,7 +28,10 @@ sub hook {
        my $backup   = $wiki->get_backup($pagename);
        
        my @log;
-       my $now = time();
+       my $now = $wiki->get_last_modified($pagename);
+       if($now eq ''){
+               $now = time();
+       }
        push ( @log, format_date( $now ) );
        push ( @log, $now );
        if($content eq ""){