by dereine: Change views_get_page_view to use the current view, not display
authorDaniel Wehner
Wed, 23 Mar 2011 20:00:33 +0000 (21:00 +0100)
committerDaniel Wehner
Wed, 23 Mar 2011 20:00:33 +0000 (21:00 +0100)
help/api-upgrading.html
plugins/views_plugin_display_page.inc

index d8e7598..59f9092 100644 (file)
@@ -182,3 +182,7 @@ return filter_xss($value);
 // Can become:
 return $this->sanitize_value($value, 'xss');
 </pre>
+
+
+<h3>Changed views_get_page_view</h3>
+In contrast to 6.x views_get_page_view now does stores the current view, not the current page display.
\ No newline at end of file
index 3e0d49b..b4204a7 100644 (file)
@@ -200,7 +200,7 @@ class views_plugin_display_page extends views_plugin_display {
    */
   function execute() {
     // Let the world know that this is the page view we're using.
-    views_set_page_view($this);
+    views_set_page_view($this->view);
 
     // Prior to this being called, the $view should already be set to this
     // display, and arguments should be set on the view.