From: Michael J. Rubinsky Date: Fri, 8 Oct 2010 00:48:34 +0000 (-0400) Subject: No need to figure the code type out, setup the autoloader. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1deb6ef576189be20dc9214dd67e681c4691c4c0;p=horde.git No need to figure the code type out, setup the autoloader. --- diff --git a/jonah/lib/View/StoryView.php b/jonah/lib/View/StoryView.php index e4839559a..c2b6f49d2 100644 --- a/jonah/lib/View/StoryView.php +++ b/jonah/lib/View/StoryView.php @@ -27,20 +27,48 @@ class Jonah_View_StoryView extends Jonah_View_Base extract($this->_params, EXTR_REFS); Horde::addScriptFile('syntaxhighlighter/scripts/shCore.js', 'horde', true); + Horde::addScriptFile('syntaxhighlighter/scripts/shAutoloader.js', 'horde', true); + $path = $GLOBALS['registry']->get('jsuri', 'horde') . '/syntaxhighlighter/scripts/'; + $brushes = << tags? $sh_js_fs = $GLOBALS['registry']->get('jsfs', 'horde') . '/syntaxhighlighter/styles/'; $sh_js_uri = Horde::url($GLOBALS['registry']->get('jsuri', 'horde'), false, -1) . '/syntaxhighlighter/styles/'; Horde_Themes::includeStylesheetFiles(array('additional' => array( array('f' => $sh_js_fs . 'shCoreEclipse.css', 'u' => $sh_js_uri . 'shCoreEclipse.css'), array('f' => $sh_js_fs . 'shThemeEclipse.css', 'u' => $sh_js_uri . 'shThemeEclipse.css'), ))); - Horde::addScriptFile('syntaxhighlighter/scripts/shBrush' . 'php' . '.js', 'horde', true); $driver = $GLOBALS['injector']->getInstance('Jonah_Driver'); try {