projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
752ccf8
129cd00
)
Merge branch 'master' into autotag
author
Joey Hess
<joey@kitenet.net>
Thu, 22 Apr 2010 00:18:44 +0000
(20:18 -0400)
committer
Joey Hess
<joey@kitenet.net>
Thu, 22 Apr 2010 00:19:06 +0000
(20:19 -0400)
Conflicts:
IkiWiki/Plugin/tag.pm
1
2
IkiWiki/Plugin/tag.pm
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
IkiWiki/Plugin/tag.pm
index a7f37a5122b30da2a8716200093a98ef3aa6f189,8ec08e936d1b021d69d7ad9f546c3427a425920c..cd7ecc212fd7c928560ade98d34366ae9da45999
---
1
/
IkiWiki/Plugin/tag.pm
---
2
/
IkiWiki/Plugin/tag.pm
+++ b/
IkiWiki/Plugin/tag.pm
@@@
-34,19
-34,12
+34,19
@@@
sub getsetup ()
safe => 1,
rebuild => 1,
},
+ tag_autocreate => {
+ type => "boolean",
+ example => 0,
+ description => "autocreate new tag pages?",
+ safe => 1,
+ rebuild => undef,
+ },
}
-sub tag
page
($) {
+sub tag
link
($) {
my $tag=shift;
-
+
- if ($tag !~ m{^
\.?
/} &&
+ if ($tag !~ m{^/} &&
defined $config{tagbase}) {
$tag="/".$config{tagbase}."/".$tag;
$tag=~y#/#/#s; # squash dups