From 0397f27185d966a84c544244a124dce2f094f9f0 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 9 Nov 2010 01:13:27 -0700 Subject: [PATCH] Fix javascript output in Nag --- nag/templates/common-header.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nag/templates/common-header.inc b/nag/templates/common-header.inc index 7c8c69222..9917491dc 100644 --- a/nag/templates/common-header.inc +++ b/nag/templates/common-header.inc @@ -14,8 +14,13 @@ if (!empty($title)) { $page_title .= ' :: ' . $title; } +Horde::addInlineJsVars(array( + '-var Nag' => '{}' +), array('top' => true)); + Horde::outputMetaTags(); Horde::includeScriptFiles(); +Horde::outputInlineScript(); Horde::addStylesheetFile($registry->get('themesfs') . '/categoryCSS.php', $registry->get('themesuri') . '/categoryCSS.php'); @@ -27,9 +32,6 @@ $bc = $prefs->getValue('show_panel') <?php echo htmlspecialchars($page_title) ?> - > -- 2.11.0