projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
326c4d6
)
checkconfig: don't warn if $config{url} is undef
author
Simon McVittie
<smcv@debian.org>
Tue, 21 Dec 2010 14:21:53 +0000
(14:21 +0000)
committer
Simon McVittie
<smcv@debian.org>
Sat, 25 Dec 2010 21:35:06 +0000
(21:35 +0000)
The warning was "Use of uninitialized value $IkiWiki::config{"url"} in
length" when running a modified t/tag.t.
IkiWiki.pm
patch
|
blob
|
history
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index 926d42a497159845ae8ab94c62a054374a61d468..93d2c326d300209cf8f6af51905ec34bccd80b64 100644
(file)
--- a/
IkiWiki.pm
+++ b/
IkiWiki.pm
@@
-544,7
+544,7
@@
sub checkconfig () {
error(gettext("Must specify url to wiki with --url when using --cgi"));
}
- if (length $config{url}) {
+ if (
defined $config{url} &&
length $config{url}) {
eval q{use URI};
my $baseurl = URI->new($config{url});