projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
44b0cea
)
Put recent changes in the transient underlay
author
Simon McVittie
<smcv@debian.org>
Sat, 25 Dec 2010 23:18:10 +0000
(23:18 +0000)
committer
Simon McVittie
<smcv@debian.org>
Fri, 7 Jan 2011 20:13:01 +0000
(20:13 +0000)
IkiWiki/Plugin/recentchanges.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/recentchanges.pm
b/IkiWiki/Plugin/recentchanges.pm
index d6292c3f20f51af905e8f7e0e961baac9b5818d3..c3296d9e8a3d55ad8ab9fa4379f139b6f9091544 100644
(file)
--- a/
IkiWiki/Plugin/recentchanges.pm
+++ b/
IkiWiki/Plugin/recentchanges.pm
@@
-16,6
+16,8
@@
sub import {
hook(type => "sessioncgi", id => "recentchanges", call => \&sessioncgi);
# Load goto to fix up links from recentchanges
IkiWiki::loadplugin("goto");
hook(type => "sessioncgi", id => "recentchanges", call => \&sessioncgi);
# Load goto to fix up links from recentchanges
IkiWiki::loadplugin("goto");
+ # ... and transient as somewhere to put our internal pages
+ IkiWiki::loadplugin("transient");
}
sub getsetup () {
}
sub getsetup () {
@@
-57,6
+59,7
@@
sub refresh ($) {
foreach my $page (keys %pagesources) {
if ($pagesources{$page} =~ /\._change$/ && ! $seen{$page}) {
unlink($config{srcdir}.'/'.$pagesources{$page});
foreach my $page (keys %pagesources) {
if ($pagesources{$page} =~ /\._change$/ && ! $seen{$page}) {
unlink($config{srcdir}.'/'.$pagesources{$page});
+ unlink($IkiWiki::Plugin::transient::transientdir.'/'.$pagesources{$page});
}
}
}
}
}
}
@@
-234,8
+237,8
@@
sub store ($$$) {
});
my $file=$page."._change";
});
my $file=$page."._change";
- writefile($file, $
config{srcdir}
, $template->output);
- utime $change->{when}, $change->{when},
"$config{srcdir}/$file"
;
+ writefile($file, $
IkiWiki::Plugin::transient::transientdir
, $template->output);
+ utime $change->{when}, $change->{when},
$IkiWiki::Plugin::transient::transientdir.'/'.$file
;
return $page;
}
return $page;
}