? painted-6.x-2.patch
Index: page.tpl.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/themes/painted/Attic/page.tpl.php,v
retrieving revision 1.1.4.3.2.1
diff -u -p -r1.1.4.3.2.1 page.tpl.php
--- page.tpl.php	9 Mar 2009 06:49:05 -0000	1.1.4.3.2.1
+++ page.tpl.php	14 Mar 2009 04:11:31 -0000
@@ -23,7 +23,7 @@
 </head>
 
 <?php /* different ids allow for separate theming of the home page */ ?>
-<body class="<?php echo $body_classes; ?><?php if (!empty($primary_links)): ?> withprimary <?php else: ?> noprimary <?php endif; ?>">
+<body class="<?php echo $body_classes; ?>">
   <div id="skip-nav"><a href="#content">Skip to Content</a></div>  
   <div id="page">
 	
@@ -176,4 +176,4 @@
   </div> <!-- /page -->
 
 </body>
-</html>
\ No newline at end of file
+</html>
Index: template.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/themes/painted/Attic/template.php,v
retrieving revision 1.1.4.7.2.1
diff -u -p -r1.1.4.7.2.1 template.php
--- template.php	9 Mar 2009 06:49:06 -0000	1.1.4.7.2.1
+++ template.php	14 Mar 2009 04:11:31 -0000
@@ -41,6 +41,11 @@ function painted_preprocess_page(&$vars,
       }
     }
   }
+  if (!empty($vars['primary_links'])){
+    $body_classes[] = 'withprimary';
+  } else{
+    $body_classes[] = 'noprimary';
+  }
   $vars['body_classes'] = implode(' ', $body_classes); // Concatenate with spaces
 }
 
@@ -109,4 +114,4 @@ function painted_fieldset($element) {
     }
   }
   return '<div class="fieldsets-outer"><fieldset' . drupal_attributes($element['#attributes']) .'>' . ($element['#title'] ? '<legend>'. $element['#title'] .'</legend>' : '') . ($element['#description'] ? '<div class="description">'. $element['#description'] .'</div>' : '') . $element['#children'] . $element['#value'] . "</fieldset></div>\n";
-}
\ No newline at end of file
+}
