Fix for views feed preview patch

  1. diff --git plugins/views_plugin_display_feed.inc plugins/views_plugin_display_feed.inc
  2. index 7a3ff4b..0ade07c 100644
  3. --- plugins/views_plugin_display_feed.inc
  4. +++ plugins/views_plugin_display_feed.inc
  5. @@ -30,7 +30,10 @@ class views_plugin_display_feed extends views_plugin_display_page {
  6.    }
  7.  
  8.    function preview() {
  9. -    return '<pre>' . check_plain($this->view->render()) . '</pre>';
  10. +    if ($this->live_preview) {
  11. +      return '<pre>' . check_plain($this->view->render()) . '</pre>';
  12. +    }
  13. +    return $this->view->render();
  14.    }
  15.  
  16.    /**

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.