bodyClass non-input variable does not exist in these apps
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Feb 2010 08:23:36 +0000 (01:23 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 19 Feb 2010 18:23:16 +0000 (11:23 -0700)
kronolith/templates/common-header.inc
nag/templates/common-header.inc
skoli/templates/common-header.inc

index 80f6fdc..76524e6 100644 (file)
@@ -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();
 
index 0bd177f..af51d83 100644 (file)
@@ -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'
+    : '';
 
 ?>
 <title><?php echo htmlspecialchars($page_title) ?></title>
index 2524442..813016c 100644 (file)
@@ -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'
+    : '';
 
 ?>
 <title><?php echo htmlspecialchars($page_title) ?></title>