OSDN Git Service
(root)
/
fswiki
/
fswiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bc2b465
)
editlogプラグインの更新日時が実際の時刻とずれることがないように修正。
author
takezoe
<takezoe@users.osdn.me>
Sun, 28 Aug 2011 17:28:12 +0000
(17:28 +0000)
committer
takezoe
<takezoe@users.osdn.me>
Sun, 28 Aug 2011 17:28:12 +0000
(17:28 +0000)
plugin/editlog/EditLog.pm
patch
|
blob
|
history
diff --git
a/plugin/editlog/EditLog.pm
b/plugin/editlog/EditLog.pm
index
1635220
..
18f2772
100644
(file)
--- a/
plugin/editlog/EditLog.pm
+++ b/
plugin/editlog/EditLog.pm
@@
-28,7
+28,10
@@
sub hook {
my $backup = $wiki->get_backup($pagename);
my @log;
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 ""){
push ( @log, format_date( $now ) );
push ( @log, $now );
if($content eq ""){