summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--help/api-upgrading.html4
-rw-r--r--plugins/views_plugin_display_page.inc2
2 files changed, 5 insertions, 1 deletions
diff --git a/help/api-upgrading.html b/help/api-upgrading.html
index d8e7598..59f9092 100644
--- a/help/api-upgrading.html
+++ b/help/api-upgrading.html
@@ -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
diff --git a/plugins/views_plugin_display_page.inc b/plugins/views_plugin_display_page.inc
index 3e0d49b..b4204a7 100644
--- a/plugins/views_plugin_display_page.inc
+++ b/plugins/views_plugin_display_page.inc
@@ -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.