From 8e1cc97007bba54722a09739286bcf259b815d33 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 1 Dec 2010 10:28:21 -0700 Subject: [PATCH] Wiki code tag should default to shell script - now it displays nothing --- wicked/lib/Text_Wiki/Render/Xhtml/Code2.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wicked/lib/Text_Wiki/Render/Xhtml/Code2.php b/wicked/lib/Text_Wiki/Render/Xhtml/Code2.php index 600c191e8..b1fe0b160 100644 --- a/wicked/lib/Text_Wiki/Render/Xhtml/Code2.php +++ b/wicked/lib/Text_Wiki/Render/Xhtml/Code2.php @@ -14,7 +14,10 @@ class Text_Wiki_Render_Xhtml_Code2 extends Text_Wiki_Render_Xhtml_Code */ public function token($options) { - $type = $options['attr']['type']; + if (!($type = $options['attr']['type'])) { + // Default to shell script + $type = 'sh'; + } $part = new Horde_Mime_Part(); $part->setContents($options['text']); -- 2.11.0