Commit 8e293b1a authored by merlinofchaos's avatar merlinofchaos

#554000 by killes: Preview checking wrong flag for preview state causes feeds...

#554000 by killes: Preview checking wrong flag for preview state causes feeds to display incorrectly when embedded.
parent 6cd162b1
......@@ -38,6 +38,7 @@ Views 2.x-dev
o #442982 by killes: Make destroy() method more robust so that views are more readily reused.
o #520558 by bdurbin: node access filter not properly checking 'view'.
o #535424 by Hugo Wetterberg: Download file link could provide empty a tag if no file is available.
o #554000 by killes: Preview checking wrong flag for preview state causes feeds to display incorrectly when embedded.
Other changes:
o Implement a post_render hook (for themes too) and cache method.
......
......@@ -30,7 +30,10 @@ class views_plugin_display_feed extends views_plugin_display_page {
}
function preview() {
return '<pre>' . check_plain($this->view->render()) . '</pre>';
if (!empty($this->live_preview)) {
return '<pre>' . check_plain($this->view->render()) . '</pre>';
}
return $this->view->render();
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment