Commit 1790c15a authored by merlinofchaos's avatar merlinofchaos
Browse files

Fix for references on new current_view code

parent 6758982b
......@@ -284,7 +284,7 @@ function views_view_block($vid) {
}
}
function &views_set_current_view($view = NULL) {
function &views_set_current_view(&$view) {
static $current_view = NULL;
if ($view !== NULL) {
unset($current_view);
......@@ -296,7 +296,8 @@ function &views_set_current_view($view = NULL) {
}
function &views_get_current_view() {
return views_set_current_view();
$dummy = NULL;
return views_set_current_view($dummy);
}
/**
......
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