Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into debian-jessie-backports
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
google.pm
diff --git
a/IkiWiki/Plugin/google.pm
b/IkiWiki/Plugin/google.pm
index 48ad4c8cea058f9a024bfdf99c01f5fcca8f4ca8..68cde261c66748c5d32475657986ce9d465fbbbf 100644
(file)
--- a/
IkiWiki/Plugin/google.pm
+++ b/
IkiWiki/Plugin/google.pm
@@
-25,6
+25,10
@@
sub checkconfig () {
if (! length $config{url}) {
error(sprintf(gettext("Must specify %s when using the %s plugin"), "url", 'google'));
}
if (! length $config{url}) {
error(sprintf(gettext("Must specify %s when using the %s plugin"), "url", 'google'));
}
+
+ # This is a mass dependency, so if the search form template
+ # changes, every page is rebuilt.
+ add_depends("", "templates/googleform.tmpl");
}
my $form;
}
my $form;
@@
-38,6
+42,7
@@
sub pagetemplate (@) {
if (! defined $form) {
my $searchform = template("googleform.tmpl", blind_cache => 1);
$searchform->param(url => $config{url});
if (! defined $form) {
my $searchform = template("googleform.tmpl", blind_cache => 1);
$searchform->param(url => $config{url});
+ $searchform->param(html5 => $config{html5});
$form=$searchform->output;
}
$form=$searchform->output;
}