From: Michael M Slusarz Date: Wed, 1 Dec 2010 17:28:21 +0000 (-0700) Subject: Wiki code tag should default to shell script - now it displays nothing X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8e1cc97007bba54722a09739286bcf259b815d33;p=horde.git Wiki code tag should default to shell script - now it displays nothing --- 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']);