Drupal's render() function passed the argument by reference, so we can't use the result of the menu_tree() function directly, here:
function render($empty = FALSE) {
if (!empty($this->options['menu'])) {
return render(menu_tree($this->options['menu']));
}
return '';
}
This should be like:
function render($empty = FALSE) {
if (!empty($this->options['menu'])) {
$tree = menu_tree($this->options['menu']);
return render($tree);
}
return '';
}
Provided a patch with a proposed solution.
| Comment | File | Size | Author |
|---|---|---|---|
| views_menuarea_only_vars_should_be_passed_as_reference.patch | 494 bytes | valentine94 |
Comments
Comment #1
valentine94Comment #2
vlad.dancerLooks good.
Comment #3
summit commentedHi,
Will this be committed please?
greetings, Martijn
Comment #4
valentine94iMiksu?