Commit ec7a878d authored by merlinofchaos's avatar merlinofchaos
Browse files

85605: _views_construct_header needs $fields to be populated

parent d6fc391d
......@@ -366,7 +366,7 @@ function views_build_view($type, &$view, $args = array(), $use_pager = false, $l
$info['countquery'] = $view->countquery;
if ($plugins[$view->type]['needs_table_header']) {
$view->table_header = _views_construct_header($view, $fields);
$view->table_header = _views_construct_header($view, _views_get_fields());
}
}
else {
......
......@@ -211,7 +211,6 @@ function _views_view_build_sorts(&$query, $view) {
* Add field information from a view to a query.
*/
function _views_view_build_fields(&$query, &$view) {
$fields = _views_get_fields();
foreach ($view->field as $field) {
......
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