aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/inline_raw_broken_on_unknown_pagetype.mdwn
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-11-06 15:51:14 +0100
committerintrigeri <intrigeri@boum.org>2009-11-07 19:53:54 +0100
commit144ffc0e36568207250a80a31370927eaf4f96ff (patch)
tree002809191e2420083159af3f214051344162d04e /doc/bugs/inline_raw_broken_on_unknown_pagetype.mdwn
parentb296bcbb08aabe3eb7a0b1c41e3a7942e1739e57 (diff)
downloadikiwiki-144ffc0e36568207250a80a31370927eaf4f96ff.tar
ikiwiki-144ffc0e36568207250a80a31370927eaf4f96ff.tar.gz
bugs++
Diffstat (limited to 'doc/bugs/inline_raw_broken_on_unknown_pagetype.mdwn')
-rw-r--r--doc/bugs/inline_raw_broken_on_unknown_pagetype.mdwn19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/bugs/inline_raw_broken_on_unknown_pagetype.mdwn b/doc/bugs/inline_raw_broken_on_unknown_pagetype.mdwn
new file mode 100644
index 000000000..814074e08
--- /dev/null
+++ b/doc/bugs/inline_raw_broken_on_unknown_pagetype.mdwn
@@ -0,0 +1,19 @@
+When trying to insert the raw content of an attached shell script
+called `whatever` using:
+
+ \[[!inline pages="whatever" raw="yes"]]
+
+The generated HTML contains:
+
+ \[[!inline Erreur: Can't call method "param" on an undefined value
+ at /usr/local/share/perl/5.10.0/IkiWiki/Plugin/inline.pm
+ line 346.]]
+
+Looking at the inline plugin's code, it is clear that `$template` is
+undef in such a situation. Defining `$template` just before line 346,
+in case it's not defined, removes the error message, but nothing
+gets inlined as `get_inline_content` returns the empty string in
+this situation.
+
+If we explicitely don't want to allow raw inlining of unknown page
+types, ikiwiki should output a better error message.