From: Michael M Slusarz Date: Thu, 11 Feb 2010 08:23:36 +0000 (-0700) Subject: bodyClass non-input variable does not exist in these apps X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ada7db046bf3d828aad5a41e9117f5cd5f02dcb8;p=horde.git bodyClass non-input variable does not exist in these apps --- 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) ?>