Need to inject the registry into the syntaxhighlighter
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 6 Oct 2010 16:56:26 +0000 (12:56 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 6 Oct 2010 16:56:26 +0000 (12:56 -0400)
wicked/lib/Text_Wiki/Render/Xhtml/Code2.php

index 0e0a1d9..a6f8e81 100644 (file)
@@ -20,7 +20,7 @@ class Text_Wiki_Render_Xhtml_Code2 extends Text_Wiki_Render_Xhtml_Code
         $part->setContents($options['text']);
         $part->setType("x-extension/$type");
 
-        $viewer = new Horde_Core_Mime_Viewer_Syntaxhighlighter($part);
+        $viewer = new Horde_Core_Mime_Viewer_Syntaxhighlighter($part, array('registry' => $GLOBALS['registry']));
         $data = $viewer->render('inline');
         $data = reset($data);
         return $data['data'];