From f9b34a4f12572a1b73db6effe05da2269fd8f528 Mon Sep 17 00:00:00 2001
From: Christopher Gervais <chris@ergonlogic.com>
Date: Wed, 14 Sep 2011 11:06:38 -0400
Subject: [PATCH] Issue #1265190 by mikeytown2, ergonlogic: Fixed missing template variables.

---
 theme/views-views-xml-style-raw.tpl.php |    4 ++--
 theme/views_views_xml_style.theme.inc   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/theme/views-views-xml-style-raw.tpl.php b/theme/views-views-xml-style-raw.tpl.php
index fb4a8ef..42c687a 100644
--- a/theme/views-views-xml-style-raw.tpl.php
+++ b/theme/views-views-xml-style-raw.tpl.php
@@ -10,7 +10,7 @@
  * @ingroup views_templates
  * @see views_views_xml_style.theme.inc
  */	
-	if ($view->override_path) {       // inside live preview
+	if (isset($view->override_path)) {       // inside live preview
     print htmlspecialchars($xml);
   }
   else if ($options['using_views_api_mode']) {     // We're in Views API mode.
@@ -20,4 +20,4 @@
   	drupal_set_header("Content-Type: $content_type; charset=utf-8");
     print $xml;
     exit;
-  }
\ No newline at end of file
+  }
diff --git a/theme/views_views_xml_style.theme.inc b/theme/views_views_xml_style.theme.inc
index d7407cf..a63322d 100644
--- a/theme/views_views_xml_style.theme.inc
+++ b/theme/views_views_xml_style.theme.inc
@@ -23,7 +23,7 @@ function template_preprocess_views_views_xml_style_raw($vars) {
   $top_child_object = $options["top_child_object"];
   $end_top_child_object = preg_replace("/\s+.*/", "", $top_child_object);    
   $plaintext_output = $options["plaintext_output"];
-  $content_type = ($options['content_type'] == 'default') ? 'text/xml' : $options['content_type'];
+  $vars["content_type"] = ($options['content_type'] == 'default') ? 'text/xml' : $options['content_type'];
   $header = $options['header'];
   $xml =  "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
   if ($header) $xml.= $header."\n"; 
-- 
1.7.4.1

