From ada7db046bf3d828aad5a41e9117f5cd5f02dcb8 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 11 Feb 2010 01:23:36 -0700 Subject: [PATCH] bodyClass non-input variable does not exist in these apps --- kronolith/templates/common-header.inc | 10 +++------- nag/templates/common-header.inc | 10 +++------- skoli/templates/common-header.inc | 10 +++------- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/kronolith/templates/common-header.inc b/kronolith/templates/common-header.inc index 80f6fdc40..76524e60c 100644 --- a/kronolith/templates/common-header.inc +++ b/kronolith/templates/common-header.inc @@ -26,13 +26,9 @@ if (!empty($refresh_time) && ($refresh_time > 0) && !empty($refresh_url)) { Horde::includeScriptFiles(); require KRONOLITH_TEMPLATES . '/javascript_defs.php'; -$bc = Horde_Util::nonInputVar('bodyClass'); -if (isset($view) && is_object($view) && $prefs->getValue('show_panel')) { - if ($bc) { - $bc .= ' '; - } - $bc .= 'rightPanel'; -} +$bc = (isset($view) && is_object($view) && $prefs->getValue('show_panel')) + ? 'rightPanel' + : ''; $currentDate = Kronolith::currentDate(); diff --git a/nag/templates/common-header.inc b/nag/templates/common-header.inc index 0bd177f14..af51d8348 100644 --- a/nag/templates/common-header.inc +++ b/nag/templates/common-header.inc @@ -17,13 +17,9 @@ if (!empty($refresh_time) && ($refresh_time > 0) && !empty($refresh_url)) { Horde::includeScriptFiles(); -$bc = Horde_Util::nonInputVar('bodyClass'); -if ($prefs->getValue('show_panel')) { - if ($bc) { - $bc .= ' '; - } - $bc .= 'rightPanel'; -} +$bc = $prefs->getValue('show_panel') + ? 'rightPanel' + : ''; ?> <?php echo htmlspecialchars($page_title) ?> diff --git a/skoli/templates/common-header.inc b/skoli/templates/common-header.inc index 252444293..813016c63 100644 --- a/skoli/templates/common-header.inc +++ b/skoli/templates/common-header.inc @@ -20,13 +20,9 @@ if (!empty($refresh_time) && ($refresh_time > 0) && !empty($refresh_url)) { Horde::includeScriptFiles(); -$bc = Horde_Util::nonInputVar('bodyClass'); -if ($prefs->getValue('show_panel')) { - if ($bc) { - $bc .= ' '; - } - $bc .= 'rightPanel'; -} +$bc = $prefs->getValue('show_panel') + ? 'rightPanel' + : ''; ?> <?php echo htmlspecialchars($page_title) ?> -- 2.11.0