? views.unquoted_version_string.7--3.patch
Index: includes/view.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/includes/view.inc,v
retrieving revision 1.167.4.20
diff -u -p -r1.167.4.20 view.inc
--- includes/view.inc	16 Apr 2010 22:30:00 -0000	1.167.4.20
+++ includes/view.inc	29 May 2010 09:48:22 -0000
@@ -1457,7 +1457,11 @@ class view extends views_db_object {
     $output = '';
     $output .= $this->export_row('view', $indent);
     // Set the API version
-    $output .= $indent . '$view->api_version = ' . views_api_version() . ";\n";
+    $version = views_api_version();
+    if (is_string($version)) {
+      $version = "'$version'";
+    }
+    $output .= $indent . '$view->api_version = ' . $version . ";\n";
     $output .= $indent . '$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */' . "\n";
 
     foreach ($this->display as $id => $display) {
