Commit dd2697dd authored by merlinofchaos's avatar merlinofchaos

#122103: Fix blank titles of blocks exported by views.

parent 844ec898
......@@ -113,6 +113,7 @@ Views 4.7.x-dev
o #119742: Improved handling of DISTINCT; allow DISTINCT to not kill summaries.
o #111936: Allow search keyword to be optional.
o #116985: Fix channel link in RSS feeds.
o #122103: Fix blank titles of blocks exported by views.
New features:
o #105620: (Attempt 2) allow modules to alter views tables + arguments
......
......@@ -516,7 +516,8 @@ function views_block($op = 'list', $delta = 0) {
foreach ($default_views as $name => $view) {
if (!isset($block[$name]) && $view->block &&
($views_status[$name] == 'enabled' || (!$view->disabled && $views_status[$name] != 'disabled'))) {
$block[$name]['info'] = filter_xss_admin(views_get_title($view, 'block'));
$title = filter_xss_admin(views_get_title($view, 'block'));
$block[$name]['info'] = empty($title) ? $name : $title;
}
}
return $block;
......
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